Date: Tue, 22 May 2001 08:51:50 -0500 (CDT) From: mark tinguely <tinguely@web.cs.ndsu.NoDak.edu> To: freebsd-questions@FreeBSD.ORG, quintana@netsys.hn Subject: Re: Default quota for users Message-ID: <200105221351.f4MDpof02528@web.cs.ndsu.NoDak.edu> In-Reply-To: <5.0.2.1.0.20010521121122.028a32f0@netsys.hn>
next in thread | previous in thread | raw e-mail | index | archive | help
Pablo Quintana <quintana@netsys.hn> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105221351.f4MDpof02528>
