From owner-freebsd-questions Fri May 28 7:49:10 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cygnus.rush.net (cygnus.rush.net [209.45.245.133]) by hub.freebsd.org (Postfix) with ESMTP id 9E4C0152F6 for ; Fri, 28 May 1999 07:49:06 -0700 (PDT) (envelope-from bright@rush.net) Received: from localhost (bright@localhost) by cygnus.rush.net (8.9.3/8.9.3) with SMTP id KAA04867; Fri, 28 May 1999 10:09:27 -0500 (EST) Date: Fri, 28 May 1999 10:09:26 -0500 (EST) From: Alfred Perlstein To: Nelson Cc: questions@FreeBSD.ORG Subject: Re: (adduser and changing defualt perms on homes) or (chmod -R in cron) In-Reply-To: <3.0.6.32.19990528090853.00802390@mgr3s1.mg> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 May 1999, Nelson wrote: > Greetings, > > I am wanting to have user home dirs to be defualt to perm 0750 and I have > examined the adduser script but am unsure what to modify to get the desired > results here. > > I think I need modify the sub home_create in the adduser but not for sure. > > I have considered a crontab that will do a chmod -R 750 /usr/home/* to > ensure the desired results by default. You'll soon have your users at your door with pitchforks and torches if you do that. on line 931 of my adduser script i have this: if (!mkdir("$homedir", 0755)) { i'm guessing that if you modify that it'll work. (change the 755 to 750) -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message