Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Kommentare in smb.conf sind Zeilen, welche mit "#" oder ";" beginnen.
- [global]
- workgroup = WORKGROUP
- server string = %h
- wins support = no
- #############################
- # Benutzerauthentifizierung #
- #############################
- security = user
- encrypt passwords = true
- invalid users = root
- guest ok = yes
- map to guest = bad user
- guest account = nobody
- ########################
- # Zeit-Synchronisation #
- ########################
- time server = yes
- ######################
- # Art der Verbindung #
- ######################
- ; dns proxy = no
- ; interfaces = eth0
- ; bind interfaces only = yes
- ; hostname lookups = yes
- ; hosts allow = debian, raspbian, windows
- ########################
- # Debugging/Accounting #
- ########################
- log file = /var/log/samba/log.%m
- max log size = 1000
- syslog = 0
- panic action = /usr/share/samba/panic-action %d
- #############################
- # Verwaltung der Passwörter #
- #############################
- server role = standalone server
- passdb backend = tdbsam
- obey pam restrictions = yes
- unix password sync = yes
- passwd program = /usr/bin/passwd %u
- passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
- pam password change = yes
- #############
- # Sonstiges #
- #############
- /var/lib/samba -s /bin/false %u
- usershare allow guests = yes
- #======================= Share Definitions =======================
- [homes]
- comment = Heimatverzeichnis
- browseable = no
- read only = no
- create mask = 0750
- directory mask = 0775
- valid users = %S
- [keypass]
- path = /srv/smb/keepass
- comment = Keepass2 Datenbank
- browseable = no
- guest ok = no
- writeable = no
- write list = mario,@keepass
- force user = keepass
- force group = keepass
- create mask = 0660
- directory mask = 0660
- ;[test1]
- ;path = /srv/smb/keepass
- ;comment = Testfreigabe
- ;guest ok = no
- ;writeable = no
- [Musik]
- path = /srv/smb/music
- comment = Meine Musiksammlung
- browseable = yes
- guest ok = no
- writeable = no
- write list = mario
- create mask = 0744
- directory mask = 0744
- [Bilder]
- copy = Musik
- path = /srv/smb/pictures
- comment = Meine Bildersammlung
- [Videos]
- copy = Musik
- path = /srv/smb/videos
- comment = Meine Videosammlung
- root@mysrv:/var/log/samba# ls -l /var/lib/
- insgesamt 140
- ...
- drwxrwxrwx 2 root root 4096 Mai 1 04:17 keepass
- root@mysrv:/var/log/samba# ls -l /var/lib/keepass
- insgesamt 24
- -rw-rw-rw- 1 keepass keepass 20574 Mai 1 01:34 RubbelDieKatz.kdbx
- root@mysrv:/var/log/samba# ls -ltra
- insgesamt 40
- drwx------ 4 root root 4096 Jun 10 2017 cores
- drwxr-xr-x 9 root root 4096 Mai 14 06:25 ..
- -rw-r--r-- 1 root root 0 Mai 14 17:03 log.
- -rw-r--r-- 1 root root 0 Mai 14 17:03 log.192.168.147.57
- -rw-r--r-- 1 root root 0 Mai 14 17:03 log.debian
- drwxr-x--- 3 root adm 4096 Mai 14 17:03 .
- -rw-r--r-- 1 root root 9438 Mai 14 17:57 log.nmbd
- -rw-r--r-- 1 root root 15111 Mai 14 18:49 log.smbd
- root@mysrv:/var/log/samba# tail -n17 log.smbd
- [2018/05/14 17:56:30, 0] ../source3/smbd/server.c:1241(main)
- smbd version 4.2.14-Debian started.
- Copyright Andrew Tridgell and the Samba Team 1992-2014
- [2018/05/14 17:56:30.330222, 0] ../lib/util/become_daemon.c:124(daemon_ready)
- STATUS=daemon 'smbd' finished starting up and ready to serve connections
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- Unable to connect to CUPS server localhost:631 - Ungültiger Dateideskriptor
- failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
- root@mysrv:/var/log/samba# cat log.debian log.192.168.147.57
- root@mysrv:/var/log/samba# tail ../auth.log
- ...
- May 14 18:36:25 mysrv smbd[28896]: pam_unix(samba:session): session closed for user mario
- May 14 18:36:33 mysrv smbd[30104]: pam_unix(samba:session): session opened for user mario by (uid=0)
Add Comment
Please, Sign In to add comment