Guest User

Untitled

a guest
Jun 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. more /etc/redhat-release
  2. CentOS Linux release 7.5.1804 (Core)
  3.  
  4. uname -r
  5. 3.10.0-862.2.3.el7.x86_64
  6.  
  7. sestatus
  8. SELinux status: disabled
  9.  
  10. firewall-cmd --zone=public --list-all |grep samba
  11. rule family="ipv4" source address="XXX.YYY.ZZ.1/24" service name="samba" log prefix="samba" accept
  12.  
  13. rpm -qa |grep samba-4
  14. samba-4.7.1-6.el7.x86_64
  15.  
  16. id
  17. uid=1001(testuser) gid=1000(testgroup) groups=1000(testgroup),100(users)
  18.  
  19. [global]
  20. # ...usual staff like master, group, netbios-name...
  21. load printers = no
  22. printing = cups
  23. veto files = /*.[mM][pP]3
  24.  
  25. interfaces = lo enp3s0f0
  26. security = user
  27. [TestUser]
  28. path = /home/testuser
  29. writeable = yes
  30. browseable = yes
  31. read only = no
  32. valid users = testuser
  33. write list = testuser
  34. read list = testuser
  35. printable = no
  36. create mask = 0640
  37. directory mask = 710
  38. force create mode = 0640
  39. force directory mode = 0710
  40. inherit acls = no
  41. inherit permissions = no
  42.  
  43. [TestUser]
  44. path = /home/testuser
  45. browsable =yes
  46. writable = yes
  47. guest ok = yes
  48.  
  49. chown -R testuser:testgroup /home/testuser/
  50. chmod -R 700 /home/testuser/
Add Comment
Please, Sign In to add comment