A user logs in to a Linux server and attempts to run the following command: sudo emacs /root/file However the user gets the following message: User userid is not allowed to execute Temacs' on this server. Which of the following would BEST allow the user to find out which commands can be used?
正解:B
This is the best command to find out which commands can be used by a user with sudo privileges because it lists the allowed and forbidden commands for a given user or role. The -l option stands for list, and the -U option specifies the user name. The output of this command will show what commands can be executed with sudo by that user on that server.References:https://www.sudo.ws/man/1.8.13/sudo.man.html