Last active
March 6, 2016 11:42
-
-
Save norbekaiser/fbb287878da45dbaed82 to your computer and use it in GitHub Desktop.
samba_pi.sh
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
sudo mkdir -p /srv/sambafreigabe | |
sudo mkdir -p /srv/musik | |
sudo mkdir -p /srv/bilder | |
sudo mkdir -p /srv/videos |
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
# Use a different container as the root of the directory tree presented to | |
# clients. The possible values are: | |
# * "." - standard container | |
# * "B" - "Browse Directory" | |
# * "M" - "Music" | |
# * "P" - "Pictures" | |
# * "V" - "Video" | |
media_dir=M,/srv/musik | |
media_dir=P,/srv/bilder | |
media_dir=V,/srv/videos |
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 = raspikurs | |
public = yes | |
server string = kurssamba | |
map to guest = Bad user | |
guest acccount = nobody | |
[share_1] | |
comment = huhu welt | |
path = /srv/sambafreigabe | |
read only = yes | |
guest ok = yes |
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 = raspikurs | |
public = yes | |
server string = kurssamba | |
map to guest = Bad user | |
guest acccount = nobody | |
[share_1] | |
comment = huhu welt | |
writeable = yes | |
path = /srv/sambafreigabe | |
guest ok = yes |
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 = raspikurs | |
public = yes | |
server string = kurs samba | |
map to guest = Bad user | |
guest acccount = nobody | |
security = user | |
invalid users = root | |
encrypt passwords = true | |
[publicshare_1] | |
comment = huhu welt | |
path = /srv/share_one | |
writeable = yes | |
guest ok = yes | |
[Musik] | |
comment = Hinterlegung der Musik | |
path = /srv/musik | |
writeable = yes | |
guest ok = Yes | |
[Bilder] | |
comment = Bilder | |
path = /srv/bilder | |
writeable = yes | |
guest ok = No | |
[Videos] | |
comment = Videos | |
path = /srv/videos | |
writeable = yes | |
guest ok = Yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment