Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Stack with folder permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Nov 09, 2014 10:32 am    Post subject: Stack with folder permissions Reply with quote

Greetings.

I have a folder '/var/www'. I used chown to add a group to this folder and chmod to allow the owner and the group accessing it. My user is a member of the group. Attempting to run 'mkdir' I get 'Permission denied' error.

Quote:
mvlabat@mvlabat ~ $ mkdir /var/www/test.dev
mkdir: cannot create directory '/var/www/test.dev': Permission denied
mvlabat@mvlabat ~ $ stat /var/www
File: '/var/www'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 807h/2055d Inode: 1740753 Links: 4
Access: (0770/drwxrwx---) Uid: ( 81/ apache) Gid: ( 0/ root)
Access: 2014-03-06 02:11:00.187673281 +0000
Modify: 2014-11-09 12:04:32.702857822 +0000
Change: 2014-11-09 12:12:56.387851116 +0000
Birth: -
mvlabat@mvlabat ~ $ groups
daemon wheel floppy audio cdrom video games apache usb users portage mvlabat


It seems I'm still a newbie. Thank you for you help )
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Sun Nov 09, 2014 10:40 am    Post subject: Reply with quote

mvlabat,

Permissions are not 'live'. They are picked up when the user next logs in.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Nov 09, 2014 10:43 am    Post subject: Reply with quote

Do you mean that I have to relog/reboot?

I did it before I've checked it again. No result

Thank you for your answer
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Nov 09, 2014 10:51 am    Post subject: Reply with quote

The matter is that if I set chmod 777 I get the permission. So it seems like my user is not recognized being in the group or group "apache" is not actually an owner.
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sun Nov 09, 2014 11:04 am    Post subject: Reply with quote

The user apache is the owner, not the group apache.
The group associated to the directory is root.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Nov 09, 2014 11:40 am    Post subject: Reply with quote

mv wrote:
The user apache is the owner, not the group apache.
The group associated to the directory is root.


I'm genius! <_<
Thank you a lot! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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