[Sunhelp] quotas and deleting users
Edward Chase
echase at postoffice.providence.edu
Wed Aug 16 10:27:46 CDT 2000
I'm new to working with quotas, so here's a basic question.
Is there anything extra that needs to be done when deleting a user? Does
the users quota entry go away with the user?
The guts of my adduser script looks like the following:
while read user gid comnt
do
# add user and set quotas
echo Creating account for ${comnt}
eval useradd -g ${gid} -c ${comnt} -s /bin/passwd -m ${user}
eval edquota -p qtempl ${user}
done < ${datafile}
quotacheck -a
The guts of my deluser script looks like the following:
while read user
do
# delete user, user's home directory, and user's mail
echo Deleting account for ${user}
rm /var/mail/${user}
eval userdel -r ${user}
done < ${datafile}
---------------------------------------------------------------
Edward F. Chase III | echase at providence.edu
Providence College | http://www.providence.edu
Computer Services | http://studentweb.providence.edu
Providence, RI 02918 |
More information about the SunHELP
mailing list