From owner-freebsd-questions Sun Nov 24 11:41:38 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0645637B401 for ; Sun, 24 Nov 2002 11:41:37 -0800 (PST) Received: from enterprise.thenetnow.com (enterprise.thenetnow.com [205.150.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 537E943E4A for ; Sun, 24 Nov 2002 11:41:36 -0800 (PST) (envelope-from grant@thenetnow.com) Received: from grant (dslb117.ody.ca [216.240.5.117]) by enterprise.thenetnow.com (8.11.6/8.11.6) with SMTP id gAOJdFr85703 for ; Sun, 24 Nov 2002 14:39:18 -0500 (EST) (envelope-from grant@thenetnow.com) Message-ID: <000901c293f1$7f7942d0$6401a8c0@grant> Reply-To: "Grant Peel" From: "Grant Peel" To: Subject: Default Quotas and Regex Searches Date: Sun, 24 Nov 2002 14:41:26 -0500 Organization: The Net Now MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 Hi all, A while back I set something somewhere so that when I add a new user, the OS (FreeBSD 4.4) sets a default user quota for that new user. I have since decided to give users more space, but can;t remember where I set up the default *sigh*. Does anyone know where new user default quotas are set? I need to set up some scripts, but an reletively new to shell scripting. I was wondering if anyone could give me a primer on how to search through text files (example httpd.conf) and add /delete / replace lines based on matching the strings "ServerName" "". For example, If I want to write a script to set up new Webalizer logs, I would make the script add a file in the webalizer dir to add a conf file (domain.ext.conf) then would need to add the TransferLog directive to a specific ... directive. -Grant Grant W. Peel Server Admin grant@thenetnow.com http://thenetnow.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message