WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: permission Denied - /usr/local/bin  (Read 3151 times)

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
permission Denied - /usr/local/bin
« 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



Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: permission Denied - /usr/local/bin
« Reply #1 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.

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: permission Denied - /usr/local/bin
« Reply #2 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.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: permission Denied - /usr/local/bin
« Reply #3 on: November 22, 2016, 08:14:12 PM »
ok, then you didn't set the permission right before squashing

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: permission Denied - /usr/local/bin
« Reply #4 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

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: permission Denied - /usr/local/bin
« Reply #5 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 ??
« Last Edit: November 22, 2016, 10:43:45 PM by roger@languageONE.com.au »

Offline roger@languageONE.com.au

  • Newbie
  • *
  • Posts: 38
Re: permission Denied - /usr/local/bin
« Reply #6 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