A question on permissions
Jahilliya
jahilliya at gmail.com
Tue Mar 7 06:47:24 UTC 2006
On 3/7/06, Pat Maddox <pergesu at 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.
More information about the freebsd-questions
mailing list