Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to run esxcfg-firewall via puTTY.

Status
Not open for further replies.

aking

Technical User
Aug 11, 2002
112
GB
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?
 
su - sets all the profile options not just the search path, could be that something else is required as well as the path.

-------------------------------

If it doesn't leak oil it must be empty!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top