View Full Version : super user environement variable
nothing
31st October 2006, 02:40 AM
when i run SU from normal user i dont have the /sbin path, how i can fix this to have /sbin in my path when am in SU ??
thx
wshawn
31st October 2006, 02:46 AM
su - yields:
PATH=/usr/lib/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/opt/jre1.5.0_07/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
su yields:
PATH=/usr/kerberos/sbin:/opt/jre1.5.0_07/bin:/opt/jre1.5.0_07/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/opt/jre1.5.0_07/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/shawn/bin
Where you tring to go superuser or just switch user?
nick.stumpos
31st October 2006, 03:01 AM
you need to use su - to get roots path. without the dash you keep your own users path
nothing
31st October 2006, 03:08 AM
thx alot "su -" work just fine
wshawn
31st October 2006, 02:56 PM
That is what I was trying to establish if nothing was just switching users and whether or not he actually needed to have the root path..
Glad to have helped....
Powered by vBulletin® Version 4.2.5 Copyright © 2019 vBulletin Solutions Inc. All rights reserved.