I am using Ubuntu 14.04 and I have created another user in my system so that I could do my work easily and others dont poke me. But my problem is, I want to share a particular folder (Downloads folder) with another user so that he/she can also see all files and access them (Its OK if another user doesnt have permission to delete these files)...

I searched earlier and some guys are advising to make another user admin. But making admin isn't solving this problem as another user is not able to see anything in that particular folder even after being admin.. Please help..

And I don't want any solution in which another user has to type anything in terminal everytime.. Thannks

share|improve this question
up vote 3 down vote accepted

You can do this by adding the secondary user to a specific group, and then modifying the permissions of the shared folder. Here is how I would do it:

Add new group sharedfolders to your Group list:

    sudo addgroup sharedfolders

Then, add the secondary user to this group

   sudo usermod -a -G sharedfolders secondusername

Just replace "secondusername" with, well, your second username.

Lastly, on your main user that owns the folder you want to share. Right click the folder in your file browser, go to the permissions tab and under "group" select the correct permissions for the "sharedfolders" group. When on your secondary user account, you can browse to that folder and make a bookmark or link to it however you prefer to do that for easier access.

share|improve this answer
    
I completed 2 steps of making a group named "sharedfolders" and adding secondary user to this group. But I cant see any option of "sharedfolders" in Downloads>permissions>group.... However, there is a name 'sambashare'. What am i doing wrong? – Deepak Awasthi Jan 13 '15 at 7:41
    
Forgot, the primary user also has to be in the group. You can do this sudo usermod -a -G sharedfolders primaryusername – user323419 Jan 13 '15 at 20:16
    
You might also want to click the "Change Permissions for Enclosed Files" button in the permissions dialogue to ensure that all of the files were permissioned correctly. Yes, permissioned is now a word. – user323419 Jan 13 '15 at 20:22
    
chmod -R g+rwx sharedfolders (this is how one can give permissions to the group) – ozma Aug 10 '17 at 18:32

Create a group, add the users to it. Create a folder. Grant access to the group, with whatever permissions you like. Add a link to the folder (with the same name, probably) to each user's home directory.

This is very flexible, but I'll do a walkthrough, for users Adam & Bella:

cd ~ ; mkdir share addgroup workers ; adduser Adam workers ; adduser Bella workers chown :workers share ; chmod g+rx share ; chmod g-w share ;

The links will want adding by the users, or use su (assuming you know their passwords)

su Adam cd ~ ; ln /home/Deepak/share share -s ; exit`

& repeat for Bella.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.