From: Jørn A. <Jor...@nt...> - 2009-04-01 20:23:47
|
The coreutils RPM, like most other utilities, is horribly outdated. Even considering fixing bugs in such outdated code is highly questionable. Current version is 7.2, 5.2.1 is more than 5 years old ! Consider using the RPMs from the excellent site perzl.org (currently at 6.12), or building your own. Current 7.2 builds without hassle. I would suggest ./configure --with-libiconv-prefix=/usr --with-libintl-prefix=/usr \ --disable-libcap --enable-install-program=arch,hostname,su You might need a newer gettext (I built against 0.17). Best Regards --Jørn Amundsen On Wed, 1 Apr 2009, Hans-Joachim Ehlers wrote: > The su command from coreutils-5.2.1-2 does not set the Path correctly - thus picking up the path from /etc/environment - in case an user switches via "su -" to root. > > The path locks like: > !$ /opt/freeware/bin/su - > Password: > > (0)root@node:/root > $ echo $PATH > /usr/ucb:/bin:/usr/bin:/etc > > > A simple strings /opt/freeware/bin/su lead me to the assumption that the path given by su is hardcoded . > > !$ strings /opt/freeware/bin/su | grep etc > /usr/ucb:/bin:/usr/bin:/etc > > It?s a bug or a feature ? > > cheers > Hajo > > > ------------------------------------------------------------------------------ > _______________________________________________ > aixtoolbox-list mailing list > aix...@li... > https://lists.sourceforge.net/lists/listinfo/aixtoolbox-list > |