Script in include path not accessible to home user

Posted by François ? Vespa ? on Super User See other posts from Super User or by François ? Vespa ?
Published on 2012-09-04T09:08:53Z Indexed on 2012/09/04 9:40 UTC
Read the original article Hit count: 330

Filed under:

So I have put a shortcut to one my scripts into /usr/bin so it is included. But command can be run only by root, other users failed to run it :(

$ sudo su
# chmod +x /opt/altf2/altf2
# ln -s /opt/altf2/altf2 /usr/bin/altf2
# altf2
It's working
# chmod 777 /opt/altf2/altf2
# chmod 777 /usr/bin/altf2
# su francois
$ altf2 gedit
altf2: command not found
$ /usr/bin/altf2
bash: /usr/bin/altf2: Permission denied

© Super User or respective owner

Related posts about permissions