[techtalk] su and PATH?

Olivier Tharan olive at minet.net
Wed Oct 11 17:05:37 EST 2000


Le 11 octobre 2000, Brian Sweeney écrivait :
> Quick questions that's been bugging me for some time...if I telnet to a
> machine as a normal user and SU as root, I don't gain any of the root user's
> standard PATH.  So when I try to execute programs I have to specify
> /usr/sbin, or /usr/bin, or whatever.  I'm using bash.

Do a 'su -' to have a login shell -- bash will then read root's
.bash_profile.

olive
-- 
Codito, ergo sum - "Je code, donc je suis"




More information about the Techtalk mailing list