Автор: funk2256, 9 месяца назад, написана на языке Plain Text.
Встраивание на сайт
  1. funk2256@home-server:~$ cat /etc/samba/smb.conf
  2. [global]
  3. workgroup = WORKGROUP
  4. server string = %h server (Samba, Ubuntu)
  5. netbios name = Ubuntu Share
  6. dns proxy = no
  7. log file = /var/log/samba/log.%m
  8. max log size = 1000
  9. passdb backend = tdbsam
  10. unix password sync = yes
  11. passwd program = /usr/bin/passwd %u
  12. pam password change = yes
  13. map to guest = bad user
  14. usershare allow guests = yes
  15. server min protocol = NT1
  16. server max protocol = SMB3
  17. security = user
  18. #[guest]
  19. #    comment = guest
  20. #    path = /tmp/
  21. #    public = yes
  22. #    only guest = yes
  23. #    writable = yes
  24. #    printable = no
  25. #[HDD]
  26. #  path = /home/funk2256/torrents
  27. #  guest ok = yes
  28. #  writeable = yes
  29.  
  30.  
  31. [Downloads]
  32.     comment = Public files
  33.     path = /home/funk2256/Downloads
  34.     guest ok = yes
  35.     browsable = yes
  36.     read only = no
  37.     create mask = 0755
  38.  
  39.  
  40. funk2256@home-server:~$ ls -la ~/Downloads/
  41. ls: cannot access '/home/funk2256/Downloads/wg0-client-ubuntu-hom-ser.conf': Permission denied
  42. ls: cannot access '/home/funk2256/Downloads/..': Permission denied
  43. ls: cannot access '/home/funk2256/Downloads/.': Permission denied
  44. total 0
  45. d????????? ? ? ? ?            ? .
  46. d????????? ? ? ? ?            ? ..
  47. -????????? ? ? ? ?            ? wg0-client-ubuntu-hom-ser.conf
  48. funk2256@home-server:~$ sudo ls -la ~/Downloads/
  49. total 12
  50. drw-r-----  2 funk2256 funk2256 4096 фев  7 00:11 .
  51. drwxr-x--- 31 funk2256 funk2256 4096 фев 14 23:13 ..
  52. -rwxrwxrwx  1 funk2256 funk2256  330 янв 23  2023 wg0-client-ubuntu-hom-ser.conf
  53.