Guest User

Untitled

a guest
Dec 24th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. > ls -la /tmp/testshare
  2. drwxrws--- 5 main smbusers 4096 Dec 24 17:29 .
  3. drwxrwxrwt 12 root root 4096 Dec 24 17:28 ..
  4. drwxrws--- 2 main smbusers 4096 Dec 24 17:29 bar
  5. drwxrws--- 2 main smbusers 4096 Dec 24 17:29 foo
  6. drwxrws--- 2 main smbusers 4096 Dec 24 17:28 Public
  7.  
  8. [global]
  9. server string = %h server (Samba, Ubuntu)
  10. server role = standalone server
  11. os level = 20
  12. workgroup = WORKGROUP
  13. writeable = yes
  14. security = user
  15. map to guest = bad password
  16. force user = main
  17. force group = smbusers
  18. create mask = 0660
  19. force create mode = 0660
  20. directory mask = 0770
  21. force directory mode = 0770
  22. encrypt passwords = yes
  23. unix password sync = yes
  24. passdb backend = tdbsam
  25. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  26. passwd program = /usr/bin/passwd %u
  27. pam password change = yes
  28. obey pam restrictions = yes
  29. panic action = /usr/share/samba/panic-action %d
  30. max log size = 1000
  31. log file = /var/log/samba/log.%m
  32. dns proxy = no
  33. socket options = TCP_NODELAY
  34.  
  35. [Public]
  36. path = /tmp/testshare/public
  37. guest ok = yes
  38.  
  39. [bar]
  40. path = /tmp/testshare/bar
  41. valid users = bar
  42.  
  43. [foo]
  44. path = /tmp/testshare/foo
  45. valid users = foo
  46.  
  47. > ls -lA /tmp/testshare/public
  48. -rw-r----- 1 main smbusers 0 Dec 24 19:43 New Text Document.txt
  49. drwxr-s--- 2 main smbusers 4096 Dec 24 19:43 New Folder
  50. > ls -lA /tmp/testshare/bar
  51. -rw-r----- 1 main smbusers 0 Dec 24 19:43 New Text Document.txt
  52. drwxr-s--- 2 main smbusers 4096 Dec 24 19:43 New Folder
Add Comment
Please, Sign In to add comment