How to create a Shared Folder between two Local User in Linux? Last Updated : 11 Jul, 2025 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 Create a shared Folder between Host OS and Guest OS ( Virtual Box) B Blinkii Follow Improve Article Tags : 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 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 How to Change The Primary Group of a User in Linux? In the field of Linux system administration, learning the modification of the primary group is essential. In this article, we are going to deliver concise details about user groups and how to manage them. What is a Primary Group?In Linux, every user is associated with a primary group. The primary gr 7 min read How to Grant Admin Privileges to a User in Linux Linux is an operating system that is open source operating system. There are many distros available in Linux distribution like Ubuntu, Kali Linux, Arch Linux, and Red Hat Linux. In this article, we will understand how to give admin privileges to non-admin users in the Ubuntu Operating system. Introd 5 min read How to Use ln Command to Create Symbolic Links in Linux A symbolic link (symlink) is like a shortcut that points to a file or folder on Linux and other similar operating systems. Symlinks can be useful for organizing files and folders, or for making it easier to access files from different locations. In this guide, you'll learn how to create symbolic lin 5 min read Like