[Sunhelp] quotas and deleting users

Eduardo Trettel trettel at dt.fee.unicamp.br
Wed Aug 16 10:50:03 CDT 2000


On Wed, 16 Aug 2000, Edward Chase wrote:

> 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 script is fine. However, quota regs are tied to UIDs and as long
as I've noticed, dont go away with the user. Not a problem, given that
your script reassign the quotas when reusing an UID.

Trettel

> 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   |
> 
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp
> 

          
============================================================================
E. Trettel <trettel at dt.fee.unicamp.br>
Network Manager  

Depto. de Telematica - FEEC - UNICAMP
Bloco B - LB 16
Fone: (019) 788-3849
Campinas - SP - Brasil
============================================================================







More information about the SunHELP mailing list