Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: bigpcman on January 30, 2010, 03:21:50 PM

Title: "grp" ownership for /tmp/package/usr/local/tce.installed when making extensions
Post by: bigpcman on January 30, 2010, 03:21:50 PM
The guidelines for creating extension startup scripts in http://forum.tinycorelinux.net/index.php?topic=2072.0 (http://forum.tinycorelinux.net/index.php?topic=2072.0) states

Quote
Note:  It is very important to set the permissions on the startup script to root:staff/775.  The same for the /usr/local/tce.installed directory itself.  This directory needs to be read/write/execute for group staff.

I noticed the scripts in many extensions like opera have ownership root:root. Can the group be staff or root for both the tmp/package../tce.installed and script file, does it matter?

Title: Re: "grp" ownership for /tmp/package/usr/local/tce.installed when making extensions
Post by: Jason W on January 30, 2010, 03:29:02 PM
Groupd needs to be staff and the perms need to be 775 for the /usr/local/tce.installed directory and preferably also for the file.
Title: Re: "grp" ownership for /tmp/package/usr/local/tce.installed when making extensions
Post by: bigpcman on January 30, 2010, 03:37:34 PM
Groupd needs to be staff and the perms need to be 775 for the /usr/local/tce.installed directory and preferably also for the file.

OK

If as user "tc" I perform mkdir -p package/usr/local/tce.installed all the directories in the path will have tc:staff ownership. Can I assume the extension installation will preserve /usr/local ownership as root:root and tce.installed as tc:staff?

edit: I tried this out and the perms are not maintained.
Title: Re: "grp" ownership for /tmp/package/usr/local/tce.installed when making extensions
Post by: Jason W on January 30, 2010, 04:31:47 PM
As root, or using sudo, use these commands

chown -R root:staff package/usr/local/tce.installed

chmod -R 775 package/usr/local/tce.installed

before packing the extensions.  That will ensure the right perms.
Title: Re: "grp" ownership for /tmp/package/usr/local/tce.installed when making extensions
Post by: bigpcman on January 30, 2010, 04:52:34 PM
As root, or using sudo, use these commands

chown -R root:staff package/usr/local/tce.installed

chmod -R 775 package/usr/local/tce.installed

before packing the extensions.  That will ensure the right perms.

Thanks for the tips.