Dear Community, Gutsy (7.10) won't run python scripts for another user, apprentice. As far as I can see, this user has sufficient permissions to do so; the line in /etc/passwd is almost identical.
The path for the other user is /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/sbin:/bin:/usr/games
It was not possible to change the path by doing this (make path resemble that of other user):
Although appearing to change the path, after logging out and back in, the path remains unchanged as output for the top line of code.Code:apprentice@blesbok-desktop:~$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games apprentice@blesbok-desktop:~$ export PATH="" apprentice@blesbok-desktop:~$ echo $PATH apprentice@blesbok-desktop:~$ PATH=$PATH/usr/local/bin:/usr/bin:/bin:/usr/games apprentice@blesbok-desktop:~$ export PATH apprentice@blesbok-desktop:~$ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/games
So the user cannot permanently change his own path! Please tell me where the path is set; it's not in .bashrc.
The script to run simply reads: print 1+1 and its name is script.py. The command python script.py produces zero output, although the script has execute permission. This does however work for the other user. The script should run as described without a shebang line #!/bin/python and adding one doesn't help.
Thanks for the interest
Bookmarks