View previous topic :: View next topic |
Author |
Message |
mvlabat Tux's lil' helper
Joined: 19 Jan 2014 Posts: 82
|
Posted: Sun Nov 09, 2014 10:32 am Post subject: Stack with folder permissions |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54097 Location: 56N 3W
|
Posted: Sun Nov 09, 2014 10:40 am Post subject: |
|
|
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 |
|
|
mvlabat Tux's lil' helper
Joined: 19 Jan 2014 Posts: 82
|
Posted: Sun Nov 09, 2014 10:43 am Post subject: |
|
|
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 |
|
|
mvlabat Tux's lil' helper
Joined: 19 Jan 2014 Posts: 82
|
Posted: Sun Nov 09, 2014 10:51 am Post subject: |
|
|
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 |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6747
|
Posted: Sun Nov 09, 2014 11:04 am Post subject: |
|
|
The user apache is the owner, not the group apache.
The group associated to the directory is root. |
|
Back to top |
|
|
mvlabat Tux's lil' helper
Joined: 19 Jan 2014 Posts: 82
|
Posted: Sun Nov 09, 2014 11:40 am Post subject: |
|
|
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! |
|
Back to top |
|
|
|