Accesing mutlple users to Read/Write and Execute on same File/Folder in linux

10:05:00 PM Mahesh Kumar Yadav 0 Comments

Open Terminal:

1. Create a group

sudo addgroup linux-data

2. Add users to group

sudo adduser mahesh linux-data
sudo adduser kumar linux-data 

3. Change group ownership

sudo chgrp -R linux-data /media/mahesh/Linux-drive

4. Assign Read/Write and Execute permission to group

sudo chmod -R g+rwx /media/mahesh/Linux-drive
sudo chmod -R g+s /media/mahesh/Linux-drive