As we all known, the vMA has only two built-in account vi-admin and vi-user. In our farm there are serveral Esxi engineer, I want them login with their ow IDs on vMA.
Can anyone guide me how to create account on vMA which as the same permission as vi-admin? Thank you.
vMA is basically just linux-based (not sure which distro) VM, with some pre-installed vm-tools and 3rd party agents (cli, vsphere/sdk, etc). You can add users as in any other *nix (check "man useradd" or "man adduser"). You just have to verify new user is in proper user group, the same as vi-admin...
Thanks for your help.
I created user account admin1 with useradd command and add it the same group with vi-admin. But I still got "You don't have permission to execute this command" when run vifp command. Would you pls suggest?
First, I just hope you skipped one line in that input, because as it is, "admin1" is not member of any group (no output to "groups admin1")
Next, cold you please check permissions for that "vifp" command (find with i.e. "whereis" and check with "ls -l")?
Also check if "admin1" has path to vifp command in his PATH variable...
1. The new account admin1 has the same group with vi-admin.
uid=1003(admin1) gid=0(root) groups=0(root),16(dialout),33(video)
vi-admin@vMA:/usr/bin> id vi-admin
uid=1000(vi-admin) gid=0(root) groups=0(root),16(dialout),33(video)
2. Vifp command path is included in enviroment path variable:
3. Vifp permission:
vi-admin@vMA:/usr/bin> ls -l vifp
-r-xr-xr-x 1 root root 68 2012-05-21 13:56 vifp
Last login: Thu Dec 12 12:38:01 2013 from 192.168.10.21
vi-admin@vma:~> sudo su -
Now that you have root access, noted by the # prompt, let’s create a user and give that user a local unix password:
vma:~ # useradd testuser
vma:~ # passwd testuser
Changing password for testuser.
New UNIX password:
Retype new UNIX password: