How to create a Shared Folder between two Local User in Linux? Last Updated : 23 Jul, 2024 Comments Improve Suggest changes Like Article Like Report This article shows how to set-up a shared folder between two local users in Linux. The shared directory/folder will be accessible to both the users, they will be able to read/write each other's file.Let us create shared directory /home/shareFolder for user Bob and Alice and add them to a common group named projectA.Note: You can create the uses Bob and Alice using following commands:$ sudo useradd Bob$ sudo passwd Bob$ sudo useradd Alice$ sudo passwd AliceSo, start by creating common group using groupadd command. $ sudo groupadd projectANow, create shared directory and change group for it using chgrp command. $ sudo mkdir /home/sharedFolder/$ sudo chgrp projectA /home/sharedFolderAfter this we need to change appropriate permissions for the shared directory using chmod command. $ sudo chmod 770 /home/sharedFolder/ Here 770 permission means: 7 – owner has rwx permissions.7 – directory groups have rwx permissions.0 – others have no permissions.We also need to set the SGID(Set-Group-ID) bit for the sharedFolder directory, now all newly created subdirectories/files under sharedFolder will inherit sharedFolder permissions. $ sudo chmod +s /home/sharedFolder Finally we add users to the common group with whom to share the folder $ sudo usermod -a -G projectA Bob$ sudo usermod -a -G projectA AliceNow /home/sharedFolder is accessible to both the user Bob and Alice. But others can't access this directory. This directory will be accessible to only members of projectA group. Comment More infoAdvertise with us Next Article How to create a Shared Folder between two Local User in Linux? B Blinkii Follow Improve Article Tags : TechTips Linux-Unix Similar Reads How to Share Files Between Linux Computers Using NFS The Network File System, or NFS protocol, is widely used in Linux for sharing files and directories between Linux systems on the same network. Here, the shared directories are created on a file server running the NFS server component. The files are added to these folders and then shared with other L 5 min read How to Create a Link for Any Document to Share It? Sharing documents with others has never been easier, thanks to the ability to create shareable links. Whether you're working on a project with a team or sending files to clients, creating a link for any document allows you to share it quickly and securely.In this guide, we'll walk you through the st 4 min read How to Create a Secure Folder on Your Phone? Most probably, there is a maximum number of users who have some private documents. Some have provided images or videos that are completely confidential. Users are most likely to create a password or use their biometrics to open their mobiles. However, there is no security to their confidential docum 5 min read Create a shared Folder between Host OS and Guest OS ( Virtual Box) How to create a shared folder between host Operating System and Guest Operating system? This is the scenario that you run Windows as your host operating system and Ubuntu in a VirtualBox, and that you want to access a specific Windows folder from Ubuntu. In short- Share a folder between Host OS-> 2 min read How to add multiple users to a group at once in linux? Managing user groups in Linux is an essential part of system administration. Often, you'll find the need to add multiple users to a specific group simultaneously. This article provides a detailed explanation of how to accomplish this task, covering every aspect, and includes examples for clarity.Und 5 min read Like