Pete wrote:
I'm not sure, but I think that if you don't add a - after the su, the evironment variables get reset. Therefore, as bash starts, it tries, as usual, to read $HOME/.bashrc (with $HOME=/root), and is therefore being denied. Try:
Hi all :
Got a problem with bash on a new Fedora Core 1install.
When I execute my script (clientLogin) as root there is no problem when I su to testuser and execute the script I get :
/bin/bash: /root/.bashrc: Permission denied
Now what has /bin/bash to do with /root/.bashrc ?
Permision overview -rwxr-xr-x 1 root root 211 Apr 30 16:17 clientLogin
The script it self : #!/bin/bash # echo "My clientLoginScript"
Strange thing is that after the err I get my result...
su testuser ./clientLogin /bin/bash: /root/.bashrc: Permission denied My clientLoginScript
Have I nice Week-End
Peter
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca
su testuser - or su - testuser (I can't remember)
If I am wrong, please correct me.
-- Why am I scared of Windows? Let's just say I will be glad I have my Knoppix CD.
_______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

