try this:
 
edquota -p sampleuser `awk -F: '$3 > 499 {print $1}' /etc/passwd
 
cheers,
 
 
----- Original Message -----
Sent: Monday, April 23, 2001 9:46 AM
Subject: [plug] Re: setting quota per user

Chris G Haravata wrote:
>
> Gud morning, guys!!!
>
> I am currently implementing samba 2.0.7 on my live system.  i am
> wondering: how do i set the disk quota on a per user basis
> automatically?  does this mean that I have to do this for each user one-
> by-one?  i already know how to do this per user and/or per group.  I
> just don't know how to do this one time.
>
> for example: if i create a new user, do i edquota for the new user?
>

Yep, or the scripted equivilant.  I think linuxconf had some way of
doing it - but I ended up writing a script that added the user, changed
their password and set their quotas - all in one hit.

Andrew Bartlett
[EMAIL PROTECTED]

--
Andrew Bartlett
[EMAIL PROTECTED]
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]

Reply via email to