[sudo-users] Question: pathing

Mark Janssen maniac.nl at gmail.com
Mon Apr 26 11:53:19 EDT 2010


On Mon, Apr 26, 2010 at 5:22 PM,  <Rick_Steele at oxy.com> wrote:
> Has anybody run into a case where after one switch users (su - xxxx), pathing no longer works?
>
> oholert2:codadm 1> sudo lsof | wc -l
> 7812
> oholert2:codadm 2> su - steeler
> Password:
> [steeler at oholert2 ~]$ sudo lsof | wc -l
> Password:
> sudo: lsof: command not found
> 0

"su - <someuser> uses the profile/path etc from the user you are su-ing to.
Try a 'su <someuser>' to keep your own environment.

Sudo doesn't have any influence here

-- 
Mark Janssen  --  maniac(at)maniac.nl  --  pgp: 0x357D2178 |   ,''`.  |
Unix / Linux Open-Source and Internet Consultant @ Snow.nl |  : :' :  |
Maniac.nl      MarkJanssen.nl      NerdNet.nl      Unix.nl |  `. `'   |
Skype: markmjanssen ICQ: 129696007 irc: FooBar on undernet |    `-    |



More information about the sudo-users mailing list