Results 1 to 3 of 3
Well I wrote a couple of scripts and I did put them in /usr/sbin I did chmod +x to the scripts and i tested them by going to home and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-14-2008 #1
Cant run +x scripts over SSH?
Well I wrote a couple of scripts and I did put them in /usr/sbin
I did chmod +x to the scripts and i tested them by going to home and trying to execute the command. Success!
Ok, so now I SSH to the Same PC. I am another user (non-root this time)
I try to execute the command. Failure! Then I try to run it with the full PathName /usr/sbin/command and it runs fine.
What did I do wrong?
Did I do something wrong?
Thanks for all input ^^
ps. Thanks to Likwid for all the help with the other Topic about nearly the Same.. (But different enough to be a different Topic)
- 01-14-2008 #2
Root will pick out commands from /usr/sbin because:
This directory contains any non-essential binaries used exclusively by the system administrator. System administration programs that are required for system repair, system recovery, mounting /usr, or other essential functions must be placed in /sbin instead.
You will find that if you place the script in the /usr/bin folder then your normal user will be able to use it without the full pathname. If you require it in /usr/sbin then I would suggest using a symlink. Please let me know if this doesn't work for some reason.
- 01-14-2008 #3