User management
You can manage vSnap server users by issuing the vsnap user command. This command and available options are used to create users, grant and revoke user privileges, query users, and update a user's password.
Users that are created on a vSnap server are operating system users that are added to the vSnap operating system group. Users in the vSnap operating system group are not assigned sudo privileges. As a result, these users require a password to run a command.
$ vsnap user createIf running interactively, you are prompted to enter the username, password, and the password a second time for confirmation. If running non-interactively, the following options are available to the create command:
- --username <username>
- Enter the username of the user.
- --password <password>
- Enter the password of the user.
$ vsnap user grantIf running interactively, you are prompted to enter the username, password, and the password a second time for confirmation. If running non-interactively, the following options are available to the grant command:
- --username <username>
- Enter the username of the user.
- --password <password>
- Enter the password of the user. This must be the operating system account password if the account already exists on the system.
$ vsnap user revokeIf running interactively, you are prompted to enter the username. If running non-interactively, the following options are available to the revoke command:
- --username <username>
- Enter the username of the user.
$ vsnap user show$ vsnap user update- --username <username>
- Enter the username of the user.
- --password <old_password>
- Enter the old password of the user.
- --new_password <new_password>
- Enter the new password of the user.
vsnap user update command, then the SMB/CIFS password can be output
of sync with the system password. Issue the following command to synchronize the SMB/CIFS
passwords.vsnap user resyncsmbpass If running interactively, you are prompted to enter the
username and the current system password. If running
non-interactively, the following options are available to the resyncsmbpass
command.
- --username <username>
-
Enter the username of the account to be synced.
- --password <password>
-
Enter the current system password of the account to be synced.