Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@matemate01-desktop:~# apt-get install samba
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following packages were automatically installed and are no longer required:
- 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
- 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
- python-xdg python3-cups python3-cupshelpers python3-oneconf python3-piston-mini-client software-center-aptdaemon-plugins system-config-printer-udev
- Use 'apt-get autoremove' to remove them.
- The following extra packages will be installed:
- python-samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
- Suggested packages:
- bind9 bind9utils ldb-tools ntp smbldap-tools winbind heimdal-clients
- The following NEW packages will be installed:
- python-samba samba samba-common samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules
- 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0 B/6,945 kB of archives.
- After this operation, 40.7 MB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Preconfiguring packages ...
- Selecting previously unselected package samba-libs:amd64.
- (Reading database ... 217215 files and directories currently installed.)
- Preparing to unpack .../samba-libs_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking samba-libs:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package python-samba.
- Preparing to unpack .../python-samba_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking python-samba (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package samba-common.
- Preparing to unpack .../samba-common_2%3a4.1.17+dfsg-4ubuntu3_all.deb ...
- Unpacking samba-common (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package samba-common-bin.
- Preparing to unpack .../samba-common-bin_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package samba-dsdb-modules.
- Preparing to unpack .../samba-dsdb-modules_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking samba-dsdb-modules (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package samba.
- Preparing to unpack .../samba_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking samba (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package samba-vfs-modules.
- Preparing to unpack .../samba-vfs-modules_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking samba-vfs-modules (2:4.1.17+dfsg-4ubuntu3) ...
- Processing triggers for man-db (2.7.4-1) ...
- Processing triggers for ufw (0.34-2) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for systemd (225-1ubuntu9) ...
- Setting up samba-libs:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up python-samba (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up samba-common (2:4.1.17+dfsg-4ubuntu3) ...
- Creating config file /etc/samba/smb.conf with new version
- Setting up samba-common-bin (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up samba-dsdb-modules (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up samba (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up samba-vfs-modules (2:4.1.17+dfsg-4ubuntu3) ...
- Processing triggers for libc-bin (2.21-0ubuntu4) ...
- Processing triggers for ureadahead (0.100.0-19) ...
- Processing triggers for systemd (225-1ubuntu9) ...
- Processing triggers for ufw (0.34-2) ...
- root@matemate01-desktop:~# smbpasswd -a public
- New SMB password:
- Retype new SMB password:
- Added user public.
- root@matemate01-desktop:~# cat /etc/samba/smbusers
- cat: /etc/samba/smbusers: No such file or directory
- root@matemate01-desktop:~# service smbd restart
- root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
- The program 'smbclient' is currently not installed. You can install it by typing:
- apt-get install smbclient
- root@matemate01-desktop:~# apt-get install smbclient
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- libsmbclient
- Suggested packages:
- cifs-utils heimdal-clients
- The following NEW packages will be installed:
- libsmbclient smbclient
- 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
- Need to get 0 B/293 kB of archives.
- After this operation, 1,167 kB of additional disk space will be used.
- Do you want to continue? [Y/n] y
- Selecting previously unselected package libsmbclient:amd64.
- (Reading database ... 217885 files and directories currently installed.)
- Preparing to unpack .../libsmbclient_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking libsmbclient:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
- Selecting previously unselected package smbclient.
- Preparing to unpack .../smbclient_2%3a4.1.17+dfsg-4ubuntu3_amd64.deb ...
- Unpacking smbclient (2:4.1.17+dfsg-4ubuntu3) ...
- Processing triggers for man-db (2.7.4-1) ...
- Setting up libsmbclient:amd64 (2:4.1.17+dfsg-4ubuntu3) ...
- Setting up smbclient (2:4.1.17+dfsg-4ubuntu3) ...
- Processing triggers for libc-bin (2.21-0ubuntu4) ...
- root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
- Enter public's password:
- Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
- tree connect failed: NT_STATUS_BAD_NETWORK_NAME
- root@matemate01-desktop:~# nano /etc/samba/smb.conf
- root@matemate01-desktop:~# testparm
- Load smb config files from /etc/samba/smb.conf
- rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
- Unknown parameter encountered: "encryption"
- Ignoring unknown parameter "encryption"
- Processing section "[printers]"
- Processing section "[print$]"
- Processing section "[public]"
- Loaded services file OK.
- Server role: ROLE_STANDALONE
- Press enter to see a dump of your service definitions
- [global]
- server string = %h server (Samba, Ubuntu)
- server role = standalone server
- map to guest = Bad User
- obey pam restrictions = Yes
- pam password change = Yes
- passwd program = /usr/bin/passwd %u
- passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
- unix password sync = Yes
- syslog = 0
- log file = /var/log/samba/log.%m
- max log size = 1000
- dns proxy = No
- usershare allow guests = Yes
- panic action = /usr/share/samba/panic-action %d
- idmap config * : backend = tdb
- [printers]
- comment = All Printers
- path = /var/spool/samba
- create mask = 0700
- printable = Yes
- print ok = Yes
- browseable = No
- [print$]
- comment = Printer Drivers
- path = /var/lib/samba/printers
- [public]
- path = /home/public/public
- force user = public
- read only = No
- root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
- Unknown parameter encountered: "encryption"
- Ignoring unknown parameter "encryption"
- Enter public's password:
- Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
- tree connect failed: NT_STATUS_ACCESS_DENIED
- root@matemate01-desktop:~# nano /etc/samba/smb.conf
- root@matemate01-desktop:~# service smbd restart
- root@matemate01-desktop:~# smbclient \\\\localhost\\public -U public
- Enter public's password:
- Domain=[WORKGROUP] OS=[Unix] Server=[Samba 4.1.17-Ubuntu]
- tree connect failed: NT_STATUS_ACCESS_DENIED
- root@matemate01-desktop:~# cat /etc/samba/
- gdbcommands smb.conf tls/
- root@matemate01-desktop:~# cat /etc/samba/smbusers
- cat: /etc/samba/smbusers: No such file or directory
- root@matemate01-desktop:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement