PHP Code:
# Cmnd alias specification
Cmnd_Alias IDADMIN=/usr/bin/mkuser, /usr/bin/chuser, /usr/sbin/rmuser, \
/usr/bin/passwd [0-9]*, /usr/bin/passwd [A-z]* ,\
!/usr/bin/passwd root, \
/usr/bin/chsec, /usr/bin/mkgroup, /usr/sbin/rmgroup, \
/home/comadm/passwd_lastupdate.pl, \
/usr/bin/ls, /usr/bin/chmod, /usr/bin/chown, /usr/bin/chgrp, \
/usr/bin/find, /usr/sbin/lsuser, /usr/bin/vi /etc/ftpusers, \
/usr/local/bin/generate_user_file_list, \
/usr/local/bin/remove_user_files, /usr/bin/cat, \
/usr/bin/rm -f /var/spool/mail/*, \
! /usr/bin/rm -f /var/spool/mail/root, \
/usr/bin/rm -f /var/spool/cron/crontabs/*, \
! /usr/bin/rm -f /var/spool/cron/crontabs/root, \
/usr/bin/rm -f /var/spool/cron/atjobs/*, \
/usr/bin/rm -rf /home/*, /usr/bin/pwdadm, /usr/bin/smitty user
# Defaults specification
Defaults passprompt="Enter password of %u: "
Defaults syslog=local2
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
On /etc/sudoers, I added it as above.
How do you put the restrictions to AIX users with 'Cmnd_Alias'?
Do I need to put a user, i.e. JDoe, under here?
PHP Code:
# User privilege specification
root ALL=(ALL) ALL
Sorry for the novice question....
Thanks so much