Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. admin@pdc:~$ testparm -s
  2. Load smb config files from /etc/samba/smb.conf
  3. rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
  4. Processing section "[netlogon]"
  5. Processing section "[sysvol]"
  6. Processing section "[profiles]"
  7. Processing section "[share]"
  8. Loaded services file OK.
  9. Server role: ROLE_ACTIVE_DIRECTORY_DC
  10. [global]
  11. workgroup = myhouse
  12. realm = MYHOUSE.HOME
  13. server string = %h server
  14. interfaces = eth0, lo
  15. server role = active directory domain controller
  16. map to guest = Bad User
  17. passdb backend = samba_dsdb
  18. syslog = 0
  19. log file = /var/log/samba/log.%m
  20. max log size = 1000
  21. preferred master = Yes
  22. panic action = /usr/share/samba/panic-action %d
  23. winbind enum users = Yes
  24. winbind enum groups = Yes
  25. winbind use default domain = Yes
  26. winbind nss info = rfc2307
  27. allow dns updates = nonsecure and secure
  28. dns forwarder = 192.168.1.254
  29. server services = rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind, ntp_signd, kcc, dnsupdate, dns, smb
  30. dcerpc endpoint servers = epmapper, wkssvc, rpcecho, samr, netlogon, lsarpc, spoolss, drsuapi, dssetup, unixinfo, browser, eventlog6, backupkey, dnsserver, winreg, srvsvc
  31. rpc_server:tcpip = no
  32. rpc_daemon:spoolssd = embedded
  33. rpc_server:spoolss = embedded
  34. rpc_server:winreg = embedded
  35. rpc_server:ntsvcs = embedded
  36. rpc_server:eventlog = embedded
  37. rpc_server:srvsvc = embedded
  38. rpc_server:svcctl = embedded
  39. rpc_server:default = external
  40. idmap config PDC:range = 500-40000
  41. idmap config PDC:schema_mode = rfc2307
  42. idmap config PDC:backend = ad
  43. idmap config *:range = 70001-80000
  44. idmap_ldb:use rfc2307 = yes
  45. idmap config * : backend = tdb
  46. hosts allow = 192.168.1.0/24, 127.
  47. hosts deny = ALL
  48. map archive = No
  49. map readonly = no
  50. store dos attributes = Yes
  51. vfs objects = dfs_samba4, acl_xattr
  52.  
  53. [netlogon]
  54. path = /var/lib/samba/sysvol/myhouse.home/scripts
  55. read only = No
  56.  
  57. [sysvol]
  58. path = /var/lib/samba/sysvol
  59. read only = No
  60.  
  61. [profiles]
  62. comment = Users Profiles
  63. path = /home/samba/profiles
  64. create mask = 0600
  65. directory mask = 0700
  66. browseable = No
  67.  
  68. [share]
  69. comment = Ubuntu File Server Share
  70. path = /srv/samba/share
  71. read only = No
  72. create mask = 0755
  73. guest ok = Yes
  74.  
  75. Domain=[MYHOUSE] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
  76.  
  77. Sharename Type Comment
  78. --------- ---- -------
  79. netlogon Disk
  80. sysvol Disk
  81. profiles Disk Users Profiles
  82. share Disk Ubuntu File Server Share
  83. IPC$ IPC IPC Service
  84. Domain=[MYHOUSE] OS=[Unix] Server=[Samba 4.1.6-Ubuntu]
  85.  
  86. Server Comment
  87. --------- -------
  88.  
  89. Workgroup Master
  90. --------- -------
  91.  
  92. admin@pdc:~$ sudo mount -t cifs //pdc/share /srv/samba/share -o username=admin,domain=MYHOUSE,iocharset=utf8,file_mode=0777,dirmode=0777
  93. Password for admin@//pdc/share:
  94. mount error(5): Input/output error
  95. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  96. admin@pdc:~$ sudo mount -t cifs //pdc/share /srv/samba/share -o username=admin,domain=MYHOUSE
  97. Password for admin@//pdc/share:
  98. mount error(5): Input/output error
  99. Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
  100. admin@pdc:~$ sudo mount -t cifs //pdc/share /srv/samba/share -o username=admin,domain=myhouse.home
  101.  
  102. C:UsersLee>net use \pdcshare /user:admin
  103. Enter the password for 'admin' to connect to 'pdc':
  104. System error 86 has occurred.
  105.  
  106. The specified network password is not correct.
  107.  
  108.  
  109. C:UsersLee>net use \pdcshare /user:administrator
  110. Enter the password for 'administrator' to connect to 'pdc':
  111. The command completed successfully.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement