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
patronTechnical consultant Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
patronTechnical consultant Author Commented:
Ok, so how can we check and set this profile
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
look at the .profile file in the root home folder

check paths.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

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
patronTechnical consultant Author 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
patronTechnical consultant Author 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
patronTechnical consultant Author Commented:
Thanks..but each user ? not the group named ESX Admins..as all are domain group and id
0
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
patronTechnical consultant Author 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
patronTechnical consultant Author 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
patronTechnical consultant Author 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
patronTechnical consultant Author 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
patronTechnical consultant Author 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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.