[plug] Re: setting quota per user

Michael Roxas mroxas at globalsources.com
Mon Apr 23 05:59:22 GMT 2001


try this:

edquota -p sampleuser `awk -F: '$3 > 499 {print $1}' /etc/passwd

cheers,


  ----- Original Message ----- 
  From: Andrew Bartlett 
  To: chrish at apc.edu.ph 
  Cc: plug at lists.q-linux.com ; samba at lists.samba.org 
  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
  abartlet at pcug.org.au

  -- 
  Andrew Bartlett
  abartlet at pcug.org.au
  _
  Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
  To leave: send "unsubscribe" in the body to plug-request at lists.q-linux.com

  To subscribe to the Linux Newbies' List: send "subscribe" in the body to ph-linux-newbie-request at lists.q-linux.com

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba mailing list