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
sixstringsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

thedwillCommented:
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.
0
crzyivan0000Commented:
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"
0
TobiasHolmCommented:
Hi!

Make a symbolic link from each users home dir to wwwroot:

$ cd ~
$ ln -s /var/www www

Set group owner to 'user' and give R+W rights to the group:

$ cd /var
$ sudo chgrp -R user www
$ sudo chmod -R g+rw www

If you do a 'ls -l' you can see the file and directory permissions.

The first column shows the file type (first character) and the access rights (next 9 characters). First 3 characters are user access rights, named u after user, next 3 are the group access rights named g after group, and the last 3, other access rights, are marked as o after others.

Regards, Tobias
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TobiasHolmCommented:
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
0
TobiasHolmCommented:
oh, I almost forgot, the users have to be members of the group 'user' for this to work.

Regards, Tobias
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.