[sudo-users] Question: pathing

Rick_Steele at oxy.com Rick_Steele at oxy.com
Mon Apr 26 11:22:10 EDT 2010


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
[steeler at oholert2 ~]$


[steeler at oholert2 ~]$ sudo lsof | wc -l
7863
[steeler at oholert2 ~]$ su - codadm
Password:
oholert2:codadm 1> sudo lsof | wc -l
sudo: lsof: command not found
0
oholert2:codadm 2>


[root at oholert2 ~]# sudo -V
Sudo version 1.6.7p5

Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Ignore '.' in $PATH
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Require users to authenticate by default
Root may run sudo
Allow some information gathering to give useful error messages
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 5 minutes
Password prompt timeout: 5 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/run/sudo
Default password prompt: Password:
Default user to run commands as: root
Path to the editor for use by visudo: /bin/vi
Environment variables to check for sanity:
        LANGUAGE
        LANG
        LC_*
Environment variables to remove:
        PERL5OPT
        PERL5LIB
        PERLLIB
        JAVA_TOOL_OPTIONS
        SHELLOPTS
        PS4
        BASH_ENV
        ENV
        TERMCAP
        TERMPATH
        TERMINFO_DIRS
        TERMINFO
        _RLD*
        LD_*
        PATH_LOCALE
        NLSPATH
        HOSTALIASES
        RES_OPTIONS
        LOCALDOMAIN
        CDPATH
        IFS
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
Local IP address and netmask pairs:


"MAN SUDO" does say that "...Note, however, that the actual
       PATH environment variable is not modified and is passed unchanged to
       the program that sudo executes."



I'm stumped.....

Rick





More information about the sudo-users mailing list