- funk2256@home-server:~$ cat /etc/samba/smb.conf
- [global]
- workgroup = WORKGROUP
- server string = %h server (Samba, Ubuntu)
- netbios name = Ubuntu Share
- dns proxy = no
- log file = /var/log/samba/log.%m
- max log size = 1000
- passdb backend = tdbsam
- unix password sync = yes
- passwd program = /usr/bin/passwd %u
- pam password change = yes
- map to guest = bad user
- usershare allow guests = yes
- server min protocol = NT1
- server max protocol = SMB3
- security = user
- #[guest]
- # comment = guest
- # path = /tmp/
- # public = yes
- # only guest = yes
- # writable = yes
- # printable = no
- #[HDD]
- # path = /home/funk2256/torrents
- # guest ok = yes
- # writeable = yes
- [Downloads]
- comment = Public files
- path = /home/funk2256/Downloads
- guest ok = yes
- browsable = yes
- read only = no
- create mask = 0755
- funk2256@home-server:~$ ls -la ~/Downloads/
- ls: cannot access '/home/funk2256/Downloads/wg0-client-ubuntu-hom-ser.conf': Permission denied
- ls: cannot access '/home/funk2256/Downloads/..': Permission denied
- ls: cannot access '/home/funk2256/Downloads/.': Permission denied
- total 0
- d????????? ? ? ? ? ? .
- d????????? ? ? ? ? ? ..
- -????????? ? ? ? ? ? wg0-client-ubuntu-hom-ser.conf
- funk2256@home-server:~$ sudo ls -la ~/Downloads/
- total 12
- drw-r----- 2 funk2256 funk2256 4096 фев 7 00:11 .
- drwxr-x--- 31 funk2256 funk2256 4096 фев 14 23:13 ..
- -rwxrwxrwx 1 funk2256 funk2256 330 янв 23 2023 wg0-client-ubuntu-hom-ser.conf