Tiny Core Extensions > TCE News
/usr/local/tce.* ownership and perms
Jason W:
As set up by tc-config, they all 3 are root:staff 775. The staff group and the rwx perms for group make them accessible by all group staff.
mikshaw:
775 on a directory owned by 0:50 is essentially no different for user tc:staff than 755 on a dir owned by 1001:50. The only different thing I can see is that user tc can't remove the directory if he doesn't own it, which shouldn't be an issue considering that particular directory shouldn't be removed.
Jason W:
In and of itself, "tc:staff 755" owner/perms of tce.installed would be fine. But for our present extension loading to work properly, the tce.installed directory needs to be group staff with 775 perms. Owner can be either root or tc. Using 755 perms with ownership tc:staff in extensions for tce.installed will cause problems once extensions containing that directory are loaded.
EDIT: The plan is then to preserve the original owner/perms of the /usr/local/tce.* directories (root:staff with 775 perms).
Kingdomcome:
I understand that a different combination of permissions will achieve basically the same goal. The purpose of this question was to get a definitive answer that could be mentioned in the extension creating thread and wiki.
Although tc-config sets up the /usr/local/tce.* dirs as 775 0:50, looking in /usr/bin/tce-setup, it appears that IF tce-setup is used (which it is during boot time loading of extensions if the bootcode base is not used) that ownership of /usr/local/tce.installed is given to $USER:staff before extensions are loaded. If tce-load is called separately (as it is during run time) the ownership will not be changed. This appears to be a possible inconsistency in the base.
Some clarification on the ownership and permissions of the files that could be placed in each of the /usr/local/tce.* dirs would be welcome as well.
Thanks for your input so far and I hope we can get this figured out soon. :)
Jason W:
tc:staff is fine for /usr/local/tce.installed in extensions, as long as perms are set at 775. I will audit extensions to either be tc:staff or root:staff with 775 perms on the /usr/local/tce.* directories. Those ownership/perms will work across all TC versions all of the time.
Mkdir by default sets perms to 755, so 775 has to be set after the /usr/local/tce.* directories are created.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version