Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 KB | None | 0 0
  1. # net ads testjoin
  2. Join is OK
  3.  
  4. # wbinfo -i TESTAD\testuser
  5. TESTADtestuser:*:4294967295:4294967295:testuser:/home/TESTAD/testuser:/bin/false
  6.  
  7. # getent passwd TESTAD\testuser
  8. # echo $?
  9. 2
  10.  
  11. # smbclient //srv1/data -U TESTAD\testuser
  12. Enter TESTADtestuser's password:
  13. Domain=[TESTAD] OS=[Windows 6.1] Server=[Samba 4.2.14-Debian]
  14. smb: > ls
  15. . D 0 Fri Feb 17 16:23:04 2017
  16. .. D 0 Wed Feb 1 16:47:02 2017
  17. test.txt N 5 Fri Feb 17 14:38:21 2017
  18. popo D 0 Fri Feb 17 16:23:04 2017
  19.  
  20. 117125466112 blocks of size 1024. 117052392484 blocks available
  21. smb: >
  22.  
  23. [global]
  24. workgroup = TESTAD
  25. realm = TESTAD.lan
  26. server role = member server
  27. security = ADS
  28. map to guest = Bad User
  29. obey pam restrictions = Yes
  30. pam password change = Yes
  31. passwd program = /usr/bin/passwd %u
  32. passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .
  33. unix password sync = Yes
  34. syslog = 0
  35. log file = /var/log/samba/log.%m
  36. max log size = 1000
  37. dns proxy = No
  38. usershare allow guests = Yes
  39. panic action = /usr/share/samba/panic-action %d
  40. idmap config * : backend = tdb
  41. inherit permissions = Yes
  42. inherit acls = Yes
  43.  
  44.  
  45. [DATA]
  46. path = /mnt/raid/
  47. read only = No
  48. guest ok = Yes
  49.  
  50. # cat /etc/nsswitch.conf
  51. # /etc/nsswitch.conf
  52. #
  53. # Example configuration of GNU Name Service Switch functionality.
  54. # If you have the `glibc-doc-reference' and `info' packages installed, try:
  55. # `info libc "Name Service Switch"' for information about this file.
  56.  
  57. passwd: compat winbind
  58. group: compat winbind
  59. shadow: compat winbind
  60. gshadow: files
  61.  
  62. hosts: files mdns4_minimal [NOTFOUND=return] dns wins
  63. networks: files
  64.  
  65. protocols: db files
  66. services: db files
  67. ethers: db files
  68. rpc: db files
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement