Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## on the server #####################################################
- $ cat /etc/smb/smb.conf
- ...
- [smbstorage]
- comment = Main SMB storage
- path = /var/lib/samba/shares/smbstorage
- available = yes
- guest ok = no
- read only = no
- # main samba user account will be given write access, no matter what the read only option is set to
- write list = smbprivate
- browseable = yes
- valid users = smbstorage smbprivate
- hide files = /.*/lost+found/
- dont descend = ./lost+found
- invalid users = root bin daemon adm sync shutdown halt mail news uucp proxy www-data backup sshd
- create mask = 0775
- directory mask = 0775
- ...
- $ ls -l /var/lib/samba/shares/
- drwxrwx--T 2 smbprivate sambausers 4096 Oct 9 22:37 smbprivate
- drwxr-xr-x 2 nobody nogroup 4096 Oct 9 22:37 smbpublic
- drwxrwx--T 2 smbstorage sambausers 4096 Oct 9 22:37 smbstorage
- $ pdbedit -L
- smbstorage:1001:
- smbprivate:1002:
- ## on the client #####################################################
- $ smbclient -L 192.168.1.10
- Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]
- Sharename Type Comment
- --------- ---- -------
- smbstorage Disk Main SMB storage
- smbpublic Disk Public SMB storage
- IPC$ IPC IPC Service (srv01 file server)
- Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.5.12-Debian]
- Server Comment
- --------- -------
- SRV01 srv01 file server
- Workgroup Master
- --------- -------
- WORKGROUP
- $ smbclient --user=smbstorage \\\\192.168.1.10\\smbstorage
- Enter smbstorage's password:
- session setup failed: NT_STATUS_LOGON_FAILURE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement