Thread: sudoers file parsing error
folks,
trying modify /etc/sudoers file using visudo , getting parsing error near line 9/10 of config. can please tell me doing wrong?
somehow doesn't seem 2 user_alias directives.# /etc/sudoers
# file must edited 'visudo' command root.
# see man page details on how write sudoers file.
defaults env_reset
# host alias specification
# user alias specification
user_alias html_group = user1, user2
user_alias admin_group = user1,user3,user4
runas_alias www = www-data
# cmnd alias specification
cmnd_alias link = /opt/www/www_data_command.sh
# user privilege specification
root all=(all) all
admin_group all=all
# every html developer can execute link_www command
html_group all= (www) link
# uncomment allow members of group sudo not need password
# (note later entries override this, might need move
# further down)
# %sudo all=nopasswd: all
# members of admin group may gain root privileges
%admin all=(all) all
# add bitnami paths sudo
defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
in advance!
alias names must string of uppercase letters, numbers, , underscore characters, , must start uppercase letter. may not use lowercase letters.
see sudoers(5) man page full syntax.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] sudoers file parsing error
Ubuntu
Comments
Post a Comment