Managing Privileges For Sudo Command Execution; Checking The Existence Of The Privilege For Sudo Command Execution; Adding The Privilege For Sudo Command Execution; Deleting The Privilege For Sudo Command Execution - Hitachi CE50-10 Instruction Manual

Table of Contents

Advertisement

6.4 Managing privileges for sudo command execution
6.4.1 Checking the existence of the privilege for sudo command
execution
1. Run the id command with the user name specified.
Enter as follows.
$ id user-name
2. Check the execution result.
If 27(sudo) appears after groups=, the user has the privilege for sudo command execution. The following
example shows that the privilege for sudo command execution has been granted to the user named myuser.
uid=1002(myuser) gid=1002(myuser) groups=1002(myuser),27(sudo)
6.4.2 Adding the privilege for sudo command execution
This operation uses the sudo command. Run the gpasswd command with the user name specified.
$ sudo gpasswd -a user-name sudo
6.4.3 Deleting the privilege for sudo command execution
This operation uses a sudo command. Run the gpasswd command with the user name specified.
$ sudo gpasswd -d user-name sudo
6. Managing User Accounts
131

Advertisement

Table of Contents
loading

Table of Contents