Robert Tinsley wrote:

On Tue, 2003-02-11 at 15:13, Robert E. Martin wrote:

this shouldn't be necessary for root on a stock red hat box, provided
you "su -" rather than just "su". could you try that and see whether it
works for you?


Yes this does work. Why is this different from the older versions of bash? Is this a new alias in the shell itself? security?

"su -" (or "su -l") means that the target user's shell will be a "logon
shell". in practice, this means that:

1. environment variables will be set up as if you had logged in directly
as that target user (generally root), rather than inheriting them from
the original user

2. your directory will change to the target user's home directory

what is helping you here is that with a login shell on a standard red
hat box, root gets a different PATH to the other users. specifically,
root's PATH will contain /sbin where 'ifconfig' lives.


Thanks for the never ending supply of Linux tips and tricks!

hope you understood -- wasn't quite certain what level to pitch my
description at.


--
Robert E Martin
IT Manager
Fishburne Military School
[EMAIL PROTECTED]
540.946.7726


Yup. Got it after some figuring. I may be new to this, but I learn quickly. I need to trust the man pages a little more however, some of the documentation I have run accross has been sketchy at best!

--
Robert E Martin
IT Manager
Fishburne Military School
[EMAIL PROTECTED]
540.946.7726




--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list


Reply via email to