|
Fellas,
You may try the script/command below using your passwd
file:
edquota -p sampleuser `awk -F: '$3 > 499 {print $1}'
/etc/passwd
cheers,
----- Original Message -----
Sent: Monday, April 23, 2001 1:30
PM
Subject: RE: [plug] Re: setting quota per
user
hello... would you mind sharing this very useful script to
us? thank you.
-----Original Message----- From: Andrew
Bartlett Sent: Monday, April 23, 2001 9:46 AM Subject: [plug] Re:
setting quota per user
> 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. _ 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]
|