From owner-freebsd-questions Sat Jan 8 10:57:57 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 7331714D81 for ; Sat, 8 Jan 2000 10:57:55 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id OAA04421; Sat, 8 Jan 2000 14:02:19 -0500 (EST) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <200001081902.OAA04421@cc942873-a.ewndsr1.nj.home.com> Subject: Re: home directory permissions In-Reply-To: <20000108010713.A69561@strontium.scientia.demon.co.uk> from Ben Smithurst at "Jan 8, 2000 01:07:13 am" To: ben@scientia.demon.co.uk (Ben Smithurst) Date: Sat, 8 Jan 2000 14:02:19 -0500 (EST) Cc: courtney@whtz.com, questions@FreeBSD.ORG Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ben Smithurst wrote, > courtney@whtz.com wrote: > > > I am trying to add a user with his home directory on a different hard > > drive (storage limitations), Free BSD will let me add the user just fine, > > but my MTA tries to deliver mail it reports an error or "world write-able > > directory"..SO here is my question- what permissions do I need to assign to > > the home directory? and what command will give me those (i.e. chmod > > ??????) > > well, there's no single answer, it depends how much privacy your > users want. It will almost certainly need user read/write/execute, > possibly with group/other read/execute too (that's 700 for just user > read/write/execute, or 755 for user read/write/execute + group/other > read/execute). Look at what permissions YOUR home directory has, for > example, and use that. You really should be able to work out an octal > permission mode from the information produced by "ls -ld $HOME". But to get back to the sendmail angle, sendmail is griping because if the directory is world-writeable, anyone can change the .forward file and direct that user's email wherever they'd like. You need to remove other and group write permissions, # chmod go-w /home/joeuser For read and execute permissions, Ben provided more info. See also chmod(1) and ls(1). -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message