The fundamental entries of /etc/sudoers is as follwoing.
USER TRUSTED_HOST: (RUN_AS_USER) COMMANDS.
- USER indicates a list the names on which the rule applies.
- TRUSTED_HOST is typically a list of networks or IPs, i.e. 192.168.1.0/255.255.555.0. When USER login from the trusted network or IP, USER can execute COMMANDS.
- RUN_AS_USER is a list of user. In this way, USER can execute COMMANDS as one of user in the list
- COMMANDS is a list of commands the USER is allowed to run.
沒有留言:
張貼留言