Not able to run any command in Esxi 4.1 SSH - using domain ID member of ESX Admins Group

Recently I have added my Esxi 4.1 to AD -Domain and all who are member of  AD group named ESX Admins are able to SSH/Putty  to Esxi 4.1.

But when ever trying to run any command ,always it is showing : command not found?

sudo su -not found, and when trying for su ..not taking domain id password while asking for root pwd ?

In 5.x..We are able to perform everything which we can do with root id.

Any more config we have do to execute any command using ssh for esxi 4.1?
Esxi-4.1.jpg
LVL 1
patronAsked:
Who is Participating?
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
User customizations are required for each user.

see here

http://www.cyberciti.biz/faq/howto-customizing-unix-linux-user-account/

This is common for Unix and Linux, but remember ESXi is neither, and this may or may not be supported by VMware ESXi. You are trying to do things with ESXi, which is out of scope of beyond the design considerations by VMware.


How many "root super" users do you have, that need access ?

Are you users not familiar with setting up their BASH/Shell environments ?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
do you have the path set correctly ? e.g. the same as the root account.

I would compare the paths of the root account and these new accounts. It looks like they have no path set, so they are unable to find of execute any commands.

e.g. they have no user profile.
0
 
patronAuthor Commented:
Ok, so how can we check and set this profile
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
look at the .profile file in the root home folder

check paths.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
if you login as root, and type export

what does it state the path is, and then repeat for your users

you will find you should have a PATH='/bin:/sbin'

where the commands are
0
 
patronAuthor Commented:
Thanks Andrew.
Only difference I have observed is.. Export Path for AD domain user logged in with putty is  ='/bin'

while for root  Export Path is ='/bin:/sbin'

Please advise to get this configured corrcetly.so that domin user or another local user can run the command as well on Esxi 4.1
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Correct, you need to set the correct path.
0
 
patronAuthor Commented:
Where  I need to set this path for AD group named ESX Admis , so that all memebr form ESX Admins can login and run command like root ?

any doc to follow the config here in Esxi 4.1 ?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
The information about paths, is similar to Unix and Linux profile setup.

You need to define this for each user.

see here

https://kb.iu.edu/d/acar
0
 
patronAuthor Commented:
Thanks..but each user ? not the group named ESX Admins..as all are domain group and id
0
 
patronAuthor Commented:
made this config and now i can see path is as same as for root..but getting command not found for any commands am using.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
check you also have the correct permissions, and you are a sudoer
0
 
patronAuthor Commented:
yes, i can..would be great if i can follow one doc to get this configured properly in my esxi 4.1 like checks to be done, config to be done in different files for my domain id to run same command as i run using root of host.

my domain id is member of group esx admins
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
I believe VMware do not encourage VMware Admins to set it up.
0
 
patronAuthor Commented:
while i login using vi client i have all required acces like root id.

but somehow my root id has been renamed in passwd file, and now when trying to rename it back using vi not allowing,
changed the pwd for root..but not allowing me to login through SSH/vi client..

Please advsie if somhow i can reset this root id through gui or if any chance to get this done using ssh ?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
@bsd

I'm afraid this is a new question.

Please post a new question and myself or other experts will be glad to assist.
0
 
patronAuthor Commented:
will rise another question ..as i need solution  for domain /local user can run any command like we run in 5.5 with or without sudo
0
 
patronAuthor Commented:
Hello  Sir,

Agreed with you view, you can give the rating as requested..i don't have any problem.even always i found Andrew a great help for most of my questions..

here my query was just to confirm the user access on 4.1, as m able to rectify this problem by my own for esx 3.5 and esxi 5.5. and i dint get the satisfactory answer to get this configured,so provided B Grade.  and raised new question again

You please advise the best solution for this, i don't have problem if A Grade has to be provided  to Andrew.

He is always VMware Guru for me.

Thanks.
BSD
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.