Last active
November 25, 2019 09:33
-
-
Save quadeare/8f93d72a97b079b38f34bd0f0297d72c to your computer and use it in GitHub Desktop.
Create public folder on linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo mkdir /home/public | |
sudo groupadd share | |
sudo chown -R root:share /home/public | |
sudo chmod ug+rwx -R /home/public | |
sudo chmod g+s /home/public |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment