Hi, this question is really just asking for an explanation as i've searched via google and still don't understand....
Have been trying to run the command 'esxcfg-firewall -q'.
I puTTy'd into my ESX server as a user, did the 'su' command to change to root, tried to run 'esxcfg-firewall -q' - COMMAND NOT FOUND. Next i cd'd into the correct directory - /user/sbin and tried again but got the same result.
After searching the net for a while i have solved it by puTTy'ing in as a user and then doing 'su -'. And now everything works. If 'su -' just sets the path as well as elevating to the root account then why doesn't 'su' also work when you are in the correct directory?
Have been trying to run the command 'esxcfg-firewall -q'.
I puTTy'd into my ESX server as a user, did the 'su' command to change to root, tried to run 'esxcfg-firewall -q' - COMMAND NOT FOUND. Next i cd'd into the correct directory - /user/sbin and tried again but got the same result.
After searching the net for a while i have solved it by puTTy'ing in as a user and then doing 'su -'. And now everything works. If 'su -' just sets the path as well as elevating to the root account then why doesn't 'su' also work when you are in the correct directory?