[CentOS] su path hard coded?

Stephen Harris

lists at spuddy.org
Mon Jul 23 19:00:37 UTC 2012


Is there any way of changing the PATH that's set by 'su' to be specific
to my needs?   It looks like 'su' has the path's hard coded.

% rpm -qf /bin/su
coreutils-5.97-34.el5_8.1

% strings /bin/su | grep local.bin
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
/usr/local/bin:/bin:/usr/bin

I could kludge it with pam_env, I guess, but that may have
more impact than just 'su' and I'd like to avoid side-effects.

Thanks!
-- 

rgds
Stephen



More information about the CentOS mailing list