• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

su as root

Red Squirrel

No Lifer
I setted up a ESX server which is redhat based and when I ssh as a user then su as root, I dont have access to all commands, such as service, and chkconfig, and probably more that I did not notice yet. Is there a way to get full root access?
 
Sounds like it's not taking your .profile or ksh.profile. Do a

$su -

and it should prompt you for a password. Then it will read your environment files correctly.
 
`su -` will also change your directory to root's home (usually /root), so don't let that disorient you. Especially if you were about to nuke something with rm -rf ../* !
 
Check your environment, do:

#set
or
#$PATH

and see what comes back, or just find out where the commands you can't run are and see if you can run them from the literal path, ie instead of

#ifconfig -a

run

#/usr/sbin/ifconfig -a
 
Back
Top