Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: florian on June 23, 2009, 02:21:07 PM

Title: some extensions (robc) cannot be used with 'user' boot code
Post by: florian on June 23, 2009, 02:21:07 PM
Directory for many extensions in /tmp/tcloop isn't accessible by group staff which make many extensions unusable with an alternate user. This is a problem for me as I use the 'user' boot code (allows to access my files on main partition easily). I think this happens mostly with robc's extension (mupen64plus, treeline, py*, sip, ...)
Title: Re: some extensions (robc) cannot be used with 'user' boot code
Post by: robc on June 23, 2009, 02:46:28 PM
I see this now, I'll get these fixed

I use TCZDIR=`mktemp -d tcz.XXXXXX` as directed in the wiki, the permissions for the temp directory are drwx--S--- instead of drwxr-sr-x. I think that is what is causing the problem.
Title: Re: some extensions (robc) cannot be used with 'user' boot code
Post by: danielibarnes on June 23, 2009, 04:27:59 PM
I might have the same problem; I don't use mktemp as in the wiki instructions. I have my own script and build the binaries as root. Should I "chmod -R g+s" on the top-level directory and/or "chown -R tc:staff"?
Title: Re: some extensions (robc) cannot be used with 'user' boot code
Post by: Jason W on June 23, 2009, 11:24:02 PM
Robc sent in 25 corrected tcz extensions to fix this, and they are uploaded.
Title: Re: some extensions (robc) cannot be used with 'user' boot code
Post by: mikshaw on June 24, 2009, 07:10:06 AM
Quote from: danielibarnes
Should I "chmod -R g+s" on the top-level directory and/or "chown -R tc:staff"?
I don't think you should do either.  Setuid is appropriate only in special circumstances, and ownership of files in /usr should always be root:root.  Anything written to a user's directory should be tc:staff...the UID and GID are the same regardless of what your user name is.

I'd check the file permissions of the files and directories to make sure a regular user can have access to them.  Directories and executables should be 755, and regular files should be 644.