sudo issue error with securing commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi.

I have a user that I want to limit to only running a couple of commands ...
As in here user just copy and paste where needed , sorry thats all your
allowed to do ... but thus far I can't get the syntax correct for the
sudoers file

line 115| greg     ALL = /bin/chmod -R o+rx /opt
line 116| greg     ALL = /bin/chmod -R ug+rwx /opt
line 117| greg     ALL = /bin/chown -R root:root /opt
line 118| greg     ALL = /usr/bin/setfact -R -m u:greg.reeve:rwx /opt
line 119| greg     ALL = /usr/bin/setfact -d -R -m u:greg.reeve:rwx /opt

visudo gives me the following :

>>> /etc/sudoers: syntax error near line 116 <<<
>>> /etc/sudoers: syntax error near line 117 <<<
>>> /etc/sudoers: syntax error near line 118 <<<


what am I missing ?

thanks

G
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux