How to create a shared directory for users?

Discussion in 'HOWTO-Related Questions' started by sduarte, Oct 9, 2020.

  1. sduarte

    sduarte New Member

    If I am running Ubuntu (on VirtualBox), how can I create a shared directory for users on the VM? For clarity, I mean a directory shared between User A and User B on the same machine, not one between the host and guest OS.
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  3. sduarte

    sduarte New Member

    Hi ahrasis, I appreciate your response. To clarify, I meant a folder shared between two users on the same Ubuntu machine, not a folder between the VM and the host.
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Create a group, for example named someproject. Add both users to that group. Create directory where group owner is that group. Then chmod g+s that directory. Set umask on both users to g+rw so files they create are group read and write.
    Using Internet Search Engines with
    Code:
    unix shared folder group
    finds more info.
    If your system supports ACL, it is possible to get more fine grained permissions and more complexity. Internet Search Engines with
    Code:
    unix shared folder group with ACL
     
    ahrasis likes this.

Share This Page