From owner-freebsd-questions Fri May 28 7:53:59 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 2543F15A38 for ; Fri, 28 May 1999 07:53:34 -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 KAA28981; Fri, 28 May 1999 10:14:06 -0500 (EST) Date: Fri, 28 May 1999 10:14:05 -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: 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, Alfred Perlstein wrote: > 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) doh! i just remebered something, if you want your user's web pages to be accessable i suggest you make that mode "751" otherwise the webservers won't have access to the user's homedir. it'll allow people on the machine to cd into thier directories but as long as thier umask is correct "027" they should be ok, (that'll keep thier files private) -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message