Hi everyone
i trying to use Cmnd_Alias future of sudoers but i got this error for some of the commands :
Code:
Sorry, user sudotest is not allowed to execute '/sbin/blkid' as root on lp.
some of the commands work like useradd userdell but some of them like passwd not working and gives error . i cant understand why some commands should work and some no ?
here is what i did :
i added this 3 line to sudoers file by visudo and added sudotest user as a member of stest group but i got the bottom error .
Code:
Cmnd_Alias ADMIN_CMDS = /usr/sbin/passwd, /usr/sbin/useradd, /usr/sbin/userdel, /usr/sbin/usermod, /usr/sbin/visudo
Cmnd_Alias STORAGE = /sbin/fdisk, /sbin/blkid
%stest ALL = ADMIN_CMDS, STORAGE