Last active
November 1, 2017 20:22
-
-
Save Disassembler0/b9a87d5a17fa92037d2618a174400345 to your computer and use it in GitHub Desktop.
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
# Single user mapped to nobody | |
smbpasswd -a nobody | |
smbpasswd -e nobody | |
# Multi user | |
useradd -b /srv/backup -k /dev/null -m -s /usr/sbin/nologin user1 | |
useradd -b /srv/backup -k /dev/null -m -s /usr/sbin/nologin user2 | |
smbpasswd -a user1 | |
smbpasswd -e user1 | |
smbpasswd -a user2 | |
smbpasswd -e user2 | |
service smbd restart | |
service nmbd restart |
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
[global] | |
workgroup = WORKGROUP | |
server string = | |
security = user | |
username map = /etc/samba/smbusers # Neede only when OS users and SMB users differ | |
map to guest = bad user | |
printing = bsd | |
printcap name = /dev/null | |
[Share] | |
path = /srv/share | |
read only = no | |
valid users = nobody |
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
nobody = User |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment