Hey Radomir, You've got it all correct but you're missing one thing. Your shell doesn't actually have access to the new group permissions yet. You have to log back in or instantiate a new shell so that you'll have access to the new group permissions.
You can also run the command newgrp after you change groups or group permissions, but realize all it's doing is instantiating a new shell! Keep in mind that this only is relevant to adding users to a group. To prove this leave your old shell open that you used to add the group. You'll see you have no access to it. Now open a new shell instance and check if you have access. You should see things work as they should on the new shell. Now go back to the old shell where things don't work and run newgrp. All should work as you expected. Don't go chmodding everything to 777 either! Bryan On Sun, May 12, 2013 at 9:45 PM, Radomir Wojcik <[email protected]>wrote: > I'm having difficulties understanding how permissions work when I thought > I had a hang of it. > > I will use this as a test case (No I don't want to modify as root), just > want these permissions to work: > > sudo chmod 33:33 install.php > sudo chmod g+w install.php > > And voila > -rw-rw-r-- 1 33 33 19664 May 10 07:45 install.php > > > I am user mandala, gid 1001 with groups I belong to being 1001 and 33 (the > group for that file) > > > :/var/web/temp/dokuwiki$ id > uid=1001(mandala) gid=1001(mandala) groups=1001(mandala),33(www-data) > > When I try this it fails: > > mv install.php install.php.old > mv: cannot move `install.php' to `install.php.old': Permission denied > > I pretty much have to give myself '777' to get access to this.. Why? > > -- > -- > You received this message because you are subscribed to the Linux Users > Group. > To post a message, send email to [email protected] > To unsubscribe, send email to [email protected] > For more options, visit our group at > http://groups.google.com/group/linuxusersgroup > References can be found at: http://goo.gl/anqri > Please remember to abide by our list rules (http://tinyurl.com/LUG-Rulesor > http://cdn.fsdev.net/List-Rules.pdf) > > --- > You received this message because you are subscribed to the Google Groups > "Linux Users Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- A healthy diet includes Linux, Linux, and more Linux. -- -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup References can be found at: http://goo.gl/anqri Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules or http://cdn.fsdev.net/List-Rules.pdf) --- You received this message because you are subscribed to the Google Groups "Linux Users Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
