2

I am setting up a webserver with Ubuntu 14.04. I have created a group called webadmins and added relevant users to this group, I also included www-data user as member of this group.

Now I need to give write access webadmins group members. Could you give me the command for this please?

muru
  • 207,228
ITC BNE
  • 21

1 Answers1

1

First you must make the directory owned by webadmins

sudo chown username:groupname /path/to/directory (-R , optional, recursive)

So there are a few ways to do this, but to Just change the groups permissions the easiest is

sudo chmod g=w /path/to/directory (-R , optional, recursive) 

this will make it ONLY have write permissions tho, so you'd probably want

g=rw

If you plan on using linux, you need to learn about chown and chmod, watch some youtube short videos and read some wiki's.

FreeSoftwareServers
  • 1,129
  • 1
  • 14
  • 32