Yoyo是一个新的系统管理员,她需要使用超级权限执行一些被授权的任务,则合适的做法是?
A. Give Yoyo the root account password shared by the system admin team and have her log into the root account via the GUI.
B. Give Yoyo the root account password shared by the system admin team and have her log into the root account via the su - command.
C. Give Yoyo the root account password shared by the system admin team and have her issue commands that need super user privileges via the su -c command.
D. Set Yoyo up in the /etc/sudoers file and have her issue commands that need super user privileges via the sudo command.
E. Set Yoyo up in the /etc/sudoers file and have her issue commands that need super user privileges via the su -c command.
查看答案
命令su的哪个选项将通过非交互式会话执行一个单独的命令?
A. -s
B. -u
C. -c
D. -e
你需要以某个特定用户身份执行一条命令,则应该使用以下哪条命令?
A. sudo -u
B. sudo -U
C. sudo -s
D. sudo -H
文件/etc/sudoers中的哪个选项可以设置执行特定命令时不需要密码?
A. PASSWORD=NO
B. NOPASSWD
C. NOPASSWORD
D. NOPROMPT
在文件/etc/sudoers中,用什么符号来表示组admins?
A. @admins
B. admins
C. -admins
D. %admins