Date: Sat, 8 Jan 2000 14:02:19 -0500 (EST) From: "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com> To: ben@scientia.demon.co.uk (Ben Smithurst) Cc: courtney@whtz.com, questions@FreeBSD.ORG Subject: Re: home directory permissions Message-ID: <200001081902.OAA04421@cc942873-a.ewndsr1.nj.home.com> In-Reply-To: <20000108010713.A69561@strontium.scientia.demon.co.uk> from Ben Smithurst at "Jan 8, 2000 01:07:13 am"
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001081902.OAA04421>