You are not logged in.

#1 2010-02-22 16:07:20

pokraka
Member
From: Brussels
Registered: 2009-01-15
Posts: 63

[SOLVED] Problem with UNIX permissions

Hello everyone.

It seems I don't have the permission to write in a folder but I don't understand why :

olivier:~$ ls -l /srv/
total 8
dr-xr-xr-x 2 root ftp  4096 Feb 14 10:16 ftp
drwxrwxr-x 2 http http 4096 Feb 22 16:53 http

olivier:~$ cat /etc/group | grep http
http::33:olivier

olivier:~$ cd /srv/http
olivier:/srv/http$ touch myfile
touch: cannot touch `myfile': Permission denied

So /srv/http is owned by user http of group http, with write permission for group members.
I am part of the http group but I can't create (or delete) a file in /srv/http.
Is this behaviour normal?

Thanks!

Last edited by pokraka (2010-02-23 00:55:32)

Offline

#2 2010-02-22 17:32:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,740

Re: [SOLVED] Problem with UNIX permissions

Two questions:
Have you logged out and back in since becoming a member of group http?
What are the permissions of /srv ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2010-02-22 17:32:25

rusty99
Member
Registered: 2009-03-18
Posts: 253

Re: [SOLVED] Problem with UNIX permissions

Edit: too slow smile

Last edited by rusty99 (2010-02-22 17:33:09)

Offline

#4 2010-02-23 00:55:15

pokraka
Member
From: Brussels
Registered: 2009-01-15
Posts: 63

Re: [SOLVED] Problem with UNIX permissions

ewaller wrote:

Have you logged out and back in since becoming a member of group http?

I guess that was the problem since now after rebooting it works!
Thanks.

Last edited by pokraka (2010-02-23 00:56:02)

Offline

Board footer

Powered by FluxBB