Advertisement
Guest User

Samba Log

a guest
Dec 8th, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.54 KB | None | 0 0
  1. root@matemate01-desktop:~# apt-get install samba
  2. Reading package lists... Done
  3. Building dependency tree      
  4. Reading state information... Done
  5. The following packages were automatically installed and are no longer required:
  6.   app-install-data apt-xapian-index apturl apturl-common avahi-utils gir1.2-gmenu-3.0 gir1.2-notify-0.7 gnome-icon-theme-symbolic ippusbxd laptop-detect libdiscid0 libgda-5.0-4 libgda-5.0-common libgmlib1
  7.   libgmtk1 libgmtk1-data libjs-jquery libmusicbrainz3-6v5 oneconf oneconf-common python-bs4 python-cups python-debtagshw python-html5lib python-lxml python-oneconf python-piston-mini-client python-xapian
  8.   python-xdg python3-cups python3-cupshelpers python3-oneconf python3-piston-mini-client software-center-aptdaemon-plugins system-config-printer-udev
  9. Use 'apt-get autoremove' to remove them.
  10. The following extra packages will be installed:
  11.   python-samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
  12. Suggested packages:
  13.   bind9 bind9utils ldb-tools ntp smbldap-tools winbind heimdal-clients
  14. The following NEW packages will be installed:
  15.   python-samba samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
  16. 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
  17. Need to get 0 B/6,945 kB of archives.
  18. After this operation, 40.7 MB of additional disk space will be used.
  19. Do you want to continue? [Y/n] y
  20. Preconfiguring packages ...
  21. Selecting previously unselected package samba-libs:amd64.
  22. (Reading database ... 217215 files and directories currently installed.)
  23. Preparing to unpack .../samba-libs_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  24. Unpacking samba-libs:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
  25. Selecting previously unselected package python-samba.
  26. Preparing to unpack .../python-samba_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  27. Unpacking python-samba (2:4.1.17+dfsg-4ubuntu3) ...
  28. Selecting previously unselected package samba-common.
  29. Preparing to unpack .../samba-common_2%3a4.1.17+dfsg-4ubuntu3_all.deb ...
  30. Unpacking samba-common (2:4.1.17+dfsg-4ubuntu3) ...
  31. Selecting previously unselected package samba-common-bin.
  32. Preparing to unpack .../samba-common-bin_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  33. Unpacking samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
  34. Selecting previously unselected package samba-dsdb-modules.
  35. Preparing to unpack .../samba-dsdb-modules_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  36. Unpacking samba-dsdb-modules (2:4.1.17+dfsg-4ubuntu3) ...
  37. Selecting previously unselected package samba.
  38. Preparing to unpack .../samba_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  39. Unpacking samba (2:4.1.17+dfsg-4ubuntu3) ...
  40. Selecting previously unselected package samba-vfs-modules.
  41. Preparing to unpack .../samba-vfs-modules_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  42. Unpacking samba-vfs-modules (2:4.1.17+dfsg-4ubuntu3) ...
  43. Processing triggers for man-db (2.7.4-1) ...
  44. Processing triggers for ufw (0.34-2) ...
  45. Processing triggers for ureadahead (0.100.0-19) ...
  46. Processing triggers for systemd (225-1ubuntu9) ...
  47. Setting up samba-libs:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
  48. Setting up python-samba (2:4.1.17+dfsg-4ubuntu3) ...
  49. Setting up samba-common (2:4.1.17+dfsg-4ubuntu3) ...
  50.  
  51. Creating config file /etc/samba/smb.conf with new version
  52. Setting up samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
  53. Setting up samba-dsdb-modules (2:4.1.17+dfsg-4ubuntu3) ...
  54. Setting up samba (2:4.1.17+dfsg-4ubuntu3) ...
  55. Setting up samba-vfs-modules (2:4.1.17+dfsg-4ubuntu3) ...
  56. Processing triggers for libc-bin (2.21-0ubuntu4) ...
  57. Processing triggers for ureadahead (0.100.0-19) ...
  58. Processing triggers for systemd (225-1ubuntu9) ...
  59. Processing triggers for ufw (0.34-2) ...
  60. root@matemate01-desktop:~# smbpasswd -a public
  61. New SMB password:
  62. Retype new SMB password:
  63. Added user public.
  64. root@matemate01-desktop:~# cat /etc/samba/smbusers
  65. cat: /etc/samba/smbusers: No such file or directory
  66. root@matemate01-desktop:~# service smbd restart
  67. root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
  68. The program 'smbclient' is currently not installed. You can install it by typing:
  69. apt-get install smbclient
  70. root@matemate01-desktop:~# apt-get install smbclient
  71. Reading package lists... Done
  72. Building dependency tree      
  73. Reading state information... Done
  74. The following extra packages will be installed:
  75.   libsmbclient
  76. Suggested packages:
  77.   cifs-utils heimdal-clients
  78. The following NEW packages will be installed:
  79.   libsmbclient smbclient
  80. 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
  81. Need to get 0 B/293 kB of archives.
  82. After this operation, 1,167 kB of additional disk space will be used.
  83. Do you want to continue? [Y/n] y
  84. Selecting previously unselected package libsmbclient:amd64.
  85. (Reading database ... 217885 files and directories currently installed.)
  86. Preparing to unpack .../libsmbclient_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  87. Unpacking libsmbclient:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
  88. Selecting previously unselected package smbclient.
  89. Preparing to unpack .../smbclient_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
  90. Unpacking smbclient (2:4.1.17+dfsg-4ubuntu3) ...
  91. Processing triggers for man-db (2.7.4-1) ...
  92. Setting up libsmbclient:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
  93. Setting up smbclient (2:4.1.17+dfsg-4ubuntu3) ...
  94. Processing triggers for libc-bin (2.21-0ubuntu4) ...
  95. root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
  96. Enter public's password:
  97. Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
  98. tree connect failed: NT_STATUS_BAD_NETWORK_NAME
  99. root@matemate01-desktop:~# nano /etc/samba/smb.conf
  100. root@matemate01-desktop:~# testparm
  101. Load smb config files from /etc/samba/smb.conf
  102. rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
  103. Unknown parameter encountered: "encryption"
  104. Ignoring unknown parameter "encryption"
  105. Processing section "[printers]"
  106. Processing section "[print$]"
  107. Processing section "[public]"
  108. Loaded services file OK.
  109. Server role: ROLE_STANDALONE
  110. Press enter to see a dump of your service definitions
  111.  
  112. [global]
  113.     server string = %h server (Samba, Ubuntu)
  114.     server role = standalone server
  115.     map to guest = Bad User
  116.     obey pam restrictions = Yes
  117.     pam password change = Yes
  118.     passwd program = /usr/bin/passwd %u
  119.     passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  120.     unix password sync = Yes
  121.     syslog = 0
  122.     log file = /var/log/samba/log.%m
  123.     max log size = 1000
  124.     dns proxy = No
  125.     usershare allow guests = Yes
  126.     panic action = /usr/share/samba/panic-action %d
  127.     idmap config * : backend = tdb
  128.  
  129. [printers]
  130.     comment = All Printers
  131.     path = /var/spool/samba
  132.     create mask = 0700
  133.     printable = Yes
  134.     print ok = Yes
  135.     browseable = No
  136.  
  137. [print$]
  138.     comment = Printer Drivers
  139.     path = /var/lib/samba/printers
  140.  
  141. [public]
  142.     path = /home/public/public
  143.     force user = public
  144.     read only = No
  145. root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
  146. Unknown parameter encountered: "encryption"
  147. Ignoring unknown parameter "encryption"
  148. Enter public's password:
  149. Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
  150. tree connect failed: NT_STATUS_ACCESS_DENIED
  151. root@matemate01-desktop:~# nano /etc/samba/smb.conf
  152. root@matemate01-desktop:~# service smbd restart
  153. root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
  154. Enter public's password:
  155. Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
  156. tree connect failed: NT_STATUS_ACCESS_DENIED
  157. root@matemate01-desktop:~# cat /etc/samba/
  158. gdbcommands  smb.conf     tls/        
  159. root@matemate01-desktop:~# cat /etc/samba/smbusers
  160. cat: /etc/samba/smbusers: No such file or directory
  161. root@matemate01-desktop:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement