Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: roger@languageONE.com.au on November 22, 2016, 05:38:26 PM

Title: permission Denied - /usr/local/bin
Post by: roger@languageONE.com.au on November 22, 2016, 05:38:26 PM
I am preparing an update to my existing extension (languageONE) and must apologies if we had covered this when I prepared the original (I have gone over my original queires and googled but to no avail)

After loading the extension If I try to run /usr/local/bin/makeONE.sh I receive a permission denied.
If I try as superuser I receive the same response.
I see the file is root:root but believe the permissions show setuid

Any clues ??? :P


Title: Re: permission Denied - /usr/local/bin
Post by: hiro on November 22, 2016, 07:01:31 PM
change the second line in makeone.sh to "id; exit" and check that it gets run and then exits.
Title: Re: permission Denied - /usr/local/bin
Post by: roger@languageONE.com.au on November 22, 2016, 07:44:21 PM
No success there but I have observed the following:-

lrwxrwxrwx root root /usr/local/bin/wbar  --> rwxr-xr-x root root /tmp/tcloop/wbar/usr/local/bin/wbar

whereas

lrwxrwxrwx root root /usr/local/bin/makeONE.sh --> -rw-r--r-- 1000 1000 /tmp/tcloop/languageONE/usr/local/bin/makeONE.sh

originating system rwxr-xr-x roger roger makeONE.sh

The user and group seem to reflect the user/group of the originating system.
Title: Re: permission Denied - /usr/local/bin
Post by: hiro on November 22, 2016, 08:14:12 PM
ok, then you didn't set the permission right before squashing
Title: Re: permission Denied - /usr/local/bin
Post by: roger@languageONE.com.au on November 22, 2016, 09:55:22 PM
Not sure what you mean here...

 (original) rwxr-xr-x roger roger makeONE.sh
 (tinycore) -rw-r--r-- 1000 1000 /tmp/tcloop/languageONE/usr/local/bin/makeONE.sh

It is tinycore that seems to have changed the permissions...
I can see the user:group may need fixing..? but what to
Title: Re: permission Denied - /usr/local/bin
Post by: roger@languageONE.com.au on November 22, 2016, 10:33:38 PM
Hold on, that might be me.
I notice when I prepare the extension my bin/* rwxr-xr-x is being changed to rw-r--r--
I'll have a look at that and I see from the wiki that user/group should be root:root. Is that correct ??
Title: Re: permission Denied - /usr/local/bin
Post by: roger@languageONE.com.au on November 23, 2016, 12:16:13 AM
Hiro..

Thanks for the push in the right direction.
Everything looks a lot better know

Cheers
Roger