From: Hans-Joachim E. <Han...@eu...> - 2009-04-01 17:03:04
|
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 |