Skip to content

Instantly share code, notes, and snippets.

@thiago-vieira
Created December 16, 2012 19:08
Show Gist options
  • Save thiago-vieira/4311491 to your computer and use it in GitHub Desktop.
Save thiago-vieira/4311491 to your computer and use it in GitHub Desktop.
Creating a shared folder for Linux users in the same computer
# create a folder
sudo mkdir /home/shared
# create a group and add user to group
sudo groupadd shared
sudo usermod -a -G shared thiago
sudo usermod -a -G shared irene
# associate the group with the folder
sudo chown :shared /home/shared -R
# add permissions to the folder
sudo chmod u=rwX,g=rwX,o= /home/shared/ -R
sudo chmod g+s /home/shared/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment