From owner-freebsd-questions Tue May 22 6:51:53 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web.cs.ndsu.NoDak.edu (web.cs.ndsu.NoDak.edu [134.129.125.7]) by hub.freebsd.org (Postfix) with ESMTP id DE15A37B424 for ; Tue, 22 May 2001 06:51:50 -0700 (PDT) (envelope-from tinguely@web.cs.ndsu.NoDak.edu) Received: (from tinguely@localhost) by web.cs.ndsu.NoDak.edu (8.11.1/8.11.1) id f4MDpof02528; Tue, 22 May 2001 08:51:50 -0500 (CDT) (envelope-from tinguely) Date: Tue, 22 May 2001 08:51:50 -0500 (CDT) From: mark tinguely Message-Id: <200105221351.f4MDpof02528@web.cs.ndsu.NoDak.edu> To: freebsd-questions@FreeBSD.ORG, quintana@netsys.hn Subject: Re: Default quota for users In-Reply-To: <5.0.2.1.0.20010521121122.028a32f0@netsys.hn> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Pablo Quintana asks: > > How can I set the default quota for new users to 4MB soft 6MB hard? > you can set up a template account (or use a known account that will not go away soon). use edquota to have the quota values that you wish, and if you add accounts via adduser program add the following: *** adduser.orig Tue May 22 08:42:25 2001 --- adduser Tue May 22 08:44:06 2001 *************** *** 714,719 **** --- 714,720 ---- &new_users_sendmessage; &adduser_log("$name:*:$u_id:$g_id($group_login):$fullname"); &home_create($userhome, $name, $group_login); + system("edquota -p newuser $name"); } else { $new_users_ok = 0; } newuser is the template account referred above. --mark tinguely To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message