Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User-rights O_o
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Hexorg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2009
Posts: 116

PostPosted: Sun May 30, 2010 12:00 am    Post subject: User-rights O_o Reply with quote

Hey everyone... I thought I had this topic nailed... but apparently not...
I have a single-user machine. I run it as user "hexorg". I have apache on that machine. Apache's document dir is /var/www/localhost/htdocs

Code:
mda_srv / # ls -la /var/www/localhost/htdocs/
total 20
drwxrw-rw- 4 apache apache 4096 May 29 17:26 .
drwxrw-rw- 6 apache apache 4096 May 13 19:43 ..
drwxrw-rw- 2 apache apache 4096 May 29 18:25 cam1
-rwxrw-rw- 1 apache apache  189 May 13 20:50 index.php
drwxrw-rw- 3 apache apache 4096 May 14 00:15 phpmp


then I do "usermod -aG apache hexorg". Then I log in as hexorg, but I can not do anything in htdocs - not even cd in it. Why?
Back to top
View user's profile Send private message
wthrowe
Tux's lil' helper
Tux's lil' helper


Joined: 19 Aug 2009
Posts: 141

PostPosted: Sun May 30, 2010 1:19 am    Post subject: Reply with quote

You need execute bits on the directory.

The read bit on a directory just controls getting a directory listing. Things like access to file info and cd'ing are controlled by the execute bit.
Back to top
View user's profile Send private message
Hexorg
Tux's lil' helper
Tux's lil' helper


Joined: 29 Oct 2009
Posts: 116

PostPosted: Sun May 30, 2010 2:43 am    Post subject: Reply with quote

Oh! ok. Thank you, I thought I needed only read bit
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21631

PostPosted: Sun May 30, 2010 3:20 am    Post subject: Reply with quote

The read bit will let you getdents. You need execute to search the directory.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum