I write a script that contains:
#!/bin/bash
echo "Enter username: "
read username
/usr/sbin/useradd -d /home/$username -m $username
/usr/bin/quotatool -u $username -bq 10M -l 10M /var/spool/mail
/usr/bin/quotatool -u $username -bq 1-M -l 10M /home
-------------------------------------------------------
but when admin as a user run this script the system says:
useradd: unable to lock password file
-----------------------------------------------------------
what changing is need for solving this problem?
-- by regards
-- Sophia


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

Reply via email to