hi,
I want user with name admin can run these commands and want add this in
sudoers file
he/she can run :"useradd -c "comment" -d /home/username -m -s /bin/false "
meanwhile I want after this user create successfully , this command:
quotatool -u username -bq 10M -l 10M /var/spool/mail
quotatool -u username -bq 10M -l 10M /home
with be run fot that user and I want all off this commands can run by
admin
I use in /etc/sudoers :
admin  ALL=  /usr/sbin/useradd , /usr/bin/quotatool,....
but when user admin run useradd command for creating a user the
/home/user directory doesn't create and also i want when admin create
this user he doen't need user quotatool and it run after creating users
. What changing do i need to /etc/sudoers for doing this request.

-- by regards
-- Sophia


______________________________________ Inflex - installed on mailserver for domain @itrc.ac.ir Queries to: admin@

Reply via email to