Ubuntu 16.04 Samba Shared Homes example

Source: Internet
Author: User
Tags ming

Ubuntu 16.04 Samba Shared Homes Example:

Note:
1, global under Security = User (only authenticated to access)
2, unix Password sync = no (the default is yes, change to no individual to have permission to perform smbpasswd password change)
3, visit to lose ip\ home directory name

Vi/etc/samba/smb.conf

[Global]

Workgroup = Workgroup

server string = %h server (Samba, Ubuntu)security = user

DNS proxy = no

Log file =/var/log/samba/log.%m

Max log size = 1000

syslog = 0

Panic action =/usr/share/samba/panic-action%d

Server role = Standalone server

Passdb backend = Tdbsam

Obey Pam restrictions = yes

Unix Password sync = no

passwd program =/usr/bin/passwd%u
passwd chat = enter\snew\s\spassword: %n\n retype\snew\s\spassword: %n\n password\ Supdated\ssuccessfully .

Pam Password Change = yes

Map to Guest = Bad user

Usershare Allow guests = yes

[Homes]
Comment = Home directories
browseable = No
writable = yes

 :wq# smbpasswd -a zhi.ming设置密码# service smbd restart修改samba密码命令:smbpasswd访问:\\ip\zhi.ming   (ip后加用户家目录名)  用户名前加ip(ip\zhi.ming)

Ubuntu 16.04 Samba Shared Homes example

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.