Originally Posted by SamuraiCoder
I'm trying to do something like this
i created a group called www and made this group the owner of the directory
so i can read and write to it.
of course I've add my self to this group, but it seems i can't read and write.
the syntax i used was something like chown :www /var/www/html.
only when i used chown samurai:www /var/www/html i could finally could create new file.
the reason i don't want to specify the user name is because I'm thinking of a scenario when i need to give permission to a large group of ppl and don't want to do it user by user.
so, what did i do wrong?
You need to post the output of ls -l
, you can try changing the secondary group of the directory or you can use chgrp
to change the group according to your wish, see if it works.