Date: Tue, 7 Mar 2006 14:47:19 +0800 From: Jahilliya <jahilliya@gmail.com> To: "Pat Maddox" <pergesu@gmail.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: A question on permissions Message-ID: <ba5e78ea0603062247w6e2ab250tae1920c292a67576@mail.gmail.com> In-Reply-To: <810a540e0603062240m5491666eva12060fb4eeea61f@mail.gmail.com> References: <810a540e0603062240m5491666eva12060fb4eeea61f@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 3/7/06, Pat Maddox <pergesu@gmail.com> wrote: > > I want to make a directory writable by one user, and readable by > another. It should be owned by the web server UID, and the group > should be the gid of my normal login user. > > %ls -ld /home/pergesu/logs > drwxr-x--- 6 www pergesu 512 Feb 23 13:05 /home/pergesu/logs > > However, the www user apparently can't read/write to that dir. I gave > 'www' a real shell just to try it out: > %sudo su www > %ls -ld /home/pergesu/logs > ls: /home/pergesu/logs: Permission denied > > I don't get why it's doing Permission denied there. www has r/w/x > access to that dir. It doesn't, however, have read access to > /home/pergesu, so that's my only guess. I don't want to make > /home/pergesu readable by everyone though of course. Isn't that what > permissions are all about? Unfortunately, if you cannot access any given directory, you cannot access any of it's children either. For anything to access /home/pergesu/logs the user must have execute permissions on /home/pergesu (not read). Jal.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ba5e78ea0603062247w6e2ab250tae1920c292a67576>