On Sun, 27 Jul 2003, Aaron Konstam wrote: > On Sat, Jul 26, 2003 at 07:42:35PM -0400, Gerry Doris wrote: > > I upgraded to RH 9 from 7.3. I thought that all was working properly but > > I just ran into a strange one with su. > > > > I'm sure that I was able as root to just do a > > > > su gerry > > > > and I would become user "gerry". However, when I try that now I become > > user "gerry" but the following error message is printed out... > > > > /bin/bash: /root/.bashrc: Permission denied > > > > I can eliminate the error message by just doing a > > > > su - gerry > > > > Also, as "gerry" I can su to root or another user without error (just > > asked for the correct password). It's only when I try to su as root to > > another user without the "-" that causes the error. > > > > Anyone know why this has started to happen? > > > > -- > When you do su gerry as root you are becoming gerry with root's > environment. su - gerry becomes gerry with gerry's environment. It > does not surprise me that gerry can't execute /root/.bashrc which is > what would have to happen when you do su gerry. > I would suspect that the permissions on /root/.bashrc prevent that > from happening. Yes, I'm aware of what you said. The original question was why has the behaviour changed from 7.3 to 9. Also, I have other 9 boxes that will do a "su gerry" from root without the error message. Something is different on this box and I can't figure it out. -- Gerry "The lyfe so short, the craft so long to learne" Chaucer -- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list