Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 44

Thread: How to create a shared folder for multiple local users

  1. #21
    Join Date
    Jun 2009
    Beans
    1,043

    Re: How to create a shared folder for multiple local users

    Quote Originally Posted by Miljet View Post
    I think that you are confusing /home with /home/(your_name). In other words, you would have a /home/jack/ and a /home/jill/ and a /home/both/. Then make sure that both Jack and Jill are members of the group both.

    If you want to make it even more seamless, make a symlink from /home/jack/Pictures to /home/both/Pictures and another symlink from /home/jill/Pictures to /home/both/Pictures. And do the same for Documents, Music, Videos, etc.
    BAM! That's what I've done on my system... My umask values aren't right though so every once in a while I have to do a chown -R .shared /home/shared (I think that's right, it's been a while since I've done it) to fix the group ownership of all the files... Takes a couple of seconds... I should write a script though.

    My music folder points directly to the /home/shared/Music directory. Very snazzy...

    BM

  2. #22
    Join Date
    Mar 2010
    Location
    Eastern Ohio
    Beans
    24
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: How to create a shared folder for multiple local users

    Quote Originally Posted by lateralus-paradox View Post
    I'm pretty new to ubuntu, but I noticed that if you right click the desktop there is a funtion to create a link/shortcut to a specified destination. I'm assuming that you can enter in a location in the file system for which that shortcut will open, giving you a quick link to the folder. (again I'm quite new to ubuntu, I am using ubuntu 9.10 as well, you may not be, and this is just something that came to mind when I read through your question)

    lateralus-paradox
    (I'm using 9.10) When you right click on the desktop it give you the option to:

    1. Create folder
    2. Create launcher
    3. Create document

    I haven't seen a way create a link from the destination. Usually I think you have to right click on the source and create a link. However, that option is not highlighted as an available task when I right click on my shared folder. I probably have to be signed in as root or open the terminal, then use super user and manually do it. Looking through the Linux-faq.pdf right now for the right commands on how to do that. Thanks.

  3. #23
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

  4. #24
    Join Date
    Dec 2009
    Beans
    6,483

    Re: How to create a shared folder for multiple local users

    sisco311's recommendation is probably the only way you're going to get 100% or your original requirement:
    I would like a folder (containing sub-folders for organization) to store music, pictures, videos, etc... that any local user can access, add, delete, modify.
    The chmod 777 method will get you to 75%

    USER1 AND USER2 will be able to access and add files
    USER1 will be able to delete USER2's files
    USER1 will not be able to read, modify, and save USER2's files to the same file name
    USER1 will be able to read, modify, and save USER2's file to another file name.

    I guess it depends on how literal your requirement is for "modify".

    EDIT: I think that was sikander3786's logic in recommending a FAT32 or NTFS partition as a common repository. Unlike linux, you set permissions of a windows partition ( and anything subsequently added to it ) at time of mount. Add a umask=000 to the fstab line for an ntfs partition and everyone will have read / write access to the partition and everything in it.
    Last edited by Morbius1; March 17th, 2010 at 07:56 PM.

  5. #25
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How to create a shared folder for multiple local users

    OKAY, here is a mini HOWTO:
    1. install bindfs:
      Code:
      sudo apt-get install bindfs
    2. create a hidden & a visible directory for the files:
      Code:
      sudo mkdir /home/.media
      sudo mkdir /home/media
    3. create a new group:
      Code:
      sudo groupadd media
    4. add the user(s) to the group:
      Code:
      sudo gpasswd -a usrname media
      repeat this for all users. Log out and log back in your current user.

    5. edit the fstab file:
      Code:
      gksu gedit /etc/fstab
    6. add a new entry at the end of the file:

      Code:
      bindfs#/home/.media    /home/media    fuse    group=media,perms=g=rwx
    7. mount the filesystems menitioned in fstab:
      Code:
      sudo mount -a
    8. move the files you want to share in the /home/media directory
    Last edited by sisco311; March 17th, 2010 at 09:38 PM. Reason: fstab entry corrected...

  6. #26
    Join Date
    Jun 2009
    Beans
    1,043

    Re: How to create a shared folder for multiple local users

    Quote Originally Posted by sisco311 View Post
    OKAY, here is a mini HOWTO:
    1. install bindfs:
      Code:
      sudo apt-get install bindfs
    2. create a hidden & a visible directory for the files:
      Code:
      sudo mkdir /home/.media
      sudo mkdir /home/media
    3. create a new group:
      Code:
      sudo groupadd media
    4. add the user(s) to the group:
      Code:
      sudo gpasswd -a usrname media
      repeat this for all users. Log out and log back in your current user.
    5. edit the fstab file:
      Code:
      gksu gedit /etc/fstab
    6. add a new entry at the end of the file:

      Code:
      /home/.media    /home/media    bindfs    group=media,perms=g=rwx
    7. mount the filesystems menitioned in fstab:
      Code:
      sudo mount -a
    8. move the files you want to share in the /home/media directory
    Do you not need to do a chmod g+s to the /home/media directory with this method?

    BM
    Last edited by blur xc; March 17th, 2010 at 09:40 PM.

  7. #27
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How to create a shared folder for multiple local users

    Quote Originally Posted by blur xc View Post
    Do you not need to do a chomod g+s to the /home/media directory with this method?

    BM
    No, bindfs allows you to mount part of the file hierarchy somewhere else (just like mount --bind), but it also allows you to change the permissions off the mirrored directory (just like you can set permissions at mount time for NTFS & FAT partitions for all the files and folders).

  8. #28
    Join Date
    Dec 2009
    Beans
    6,483

    Re: How to create a shared folder for multiple local users

    Followed your HowTo - verbatim

    sudo mount -a

    Results in
    mount: unknown filesystem type 'bindfs'
    Is there a step missing or is this a user error on my part.

  9. #29
    Join Date
    Feb 2007
    Location
    Romania
    Beans
    Hidden!

    Re: How to create a shared folder for multiple local users

    Quote Originally Posted by Morbius1 View Post
    Followed your HowTo - verbatim

    sudo mount -a

    Results in
    Is there a step missing or is this a user error on my part.
    Sorry, I didn't read the man page carefully...

    It should be:
    Code:
    bindfs#/home/.media    /home/media    fuse    group=media,perms=g=rwx

  10. #30
    Join Date
    Dec 2009
    Beans
    6,483

    Re: How to create a shared folder for multiple local users

    There you go. I'll have to admit though your original way makes more sense as it had a consistant syntax with other fstab entries

    I just started exploring ACL's because of your posts and now I have this.

    Thank you very much.

Page 3 of 5 FirstFirst 12345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •