题目内容

文件/etc/sudoers中的哪个选项可以设置执行特定命令时不需要密码?

A. PASSWORD=NO
B. NOPASSWD
C. NOPASSWORD
D. NOPROMPT

查看答案
更多问题

在文件/etc/sudoers中,用什么符号来表示组admins?

A. @admins
B. admins
C. -admins
D. %admins

在执行脚本时,你需要阻止sudo提示输入密码,以下哪个选项可以达到此目的?

A. -n
B. --noprompt
C. -i
D. -q

以下哪些关于Linux用户密码的说法正确? (多选)

A. Passwords should be stored in the /etc/shadow file.
B. Passwords should be stored in the /etc/passwd file.
C. Passwords are stored as salted hashes.
D. Use the pwconv utility to move passwords to the /etc/shadow file.
E. Use the passwd command to change your password.

文件/etc/shadow中包含以下哪些信息? (多选)

A. Maximum password age
B. Account expiration date
C. Password
D. Comment
E. Default shell

答案查题题库