Weird problem with non-root user
hchhaya at ti.com
Wed Aug 23 10:40:55 EDT 2000
I think the problem was because I assumed sudo would change to the target
users directory before executing the command.
The script was looking for some config files in ~user2 but was being
executed from ~user1. It never found the config files and hung as a result.
I modified the script to use full paths for the config and log files and it
now works fine.
I don't understand why
[user1 at host]% sudo -u user2 echo $HOME
Shouldn't it be /home/user2?
I have probably mis-understood how sudo works.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sudo-users