Link to home
Start Free TrialLog in
Avatar of sixstrings
sixstringsFlag for United States of America

asked on

Ubuntu Folder and File sharing

I need to set up wwwroot folder so that It can have access to the users.

The permission should be set on the following basis:

1. The wwwroot directory in /www
2. When the any user1 create a folder lets say /wwwroot/myproject, that particular user need to have full access to /wwwroot/myproject.

3. However when user2 create a folder lets say /wwwroot/myworld, he also need to have fill access to /wwwroot/myworld but view access to  /wwwroot/myproject.

4. Finally /wwwroot directory should appear in all users home
Avatar of thedwill
thedwill
Flag of United States of America image

I would look into ISPConfig or something similar for your needs.

It sound like you will still need to specify a group that has read access to the wwwroot dir and all users will be a member of that group.
Avatar of crzyivan0000
crzyivan0000

Method 1:
open a terminal window, type in "sudo nautilus". browse to "/". right click the wwwroot folder and set the permissions so that everyone can access the folder.

method 2:
open terminal window, type in "sudo chmod 0777 -R /wwwroot"
ASKER CERTIFIED SOLUTION
Avatar of TobiasHolm
TobiasHolm
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I used /var/www as an example. If you have your wwwroot in /www you have to change the commands according to this.

I've attached a pic of the resulting file rights when a user creates a file + how the www-link looks like in the users home dir.

Regards, Tobias
1wwwDirRights.gif
1wwwInHomedir.gif
oh, I almost forgot, the users have to be members of the group 'user' for this to work.

Regards, Tobias