By default bash will read the ~/.bashrc file. My theory is that since you are root, and suing to a different user, it is still trying to read roots .bashrc file to which testuser does not have permission to read. Try using the command: su - testuser note the dash, so that you get into testusers environment, then it should read from that users .bashrc file. You could also use the command: sh clientLogin and then it should not try to read the ~/.bashrc file at all.
Jesse Quoting Pete <[EMAIL PROTECTED]>: > > 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 > _______________________________________________ clug-talk mailing list [EMAIL PROTECTED] http://clug.ca/mailman/listinfo/clug-talk_clug.ca

