Re: su upgrade behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
-------------------------------------------
Aaron Konstam
Computer Science
Trinity University
715 Stadium Dr.
San Antonio, TX 78212-7200

telephone: (210)-999-7484
email:akonstam@xxxxxxxxxxx


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux