Ubuntu 16.04 samba共享homes示例
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ubuntu 16.04 samba共享homes示例相关的知识,希望对你有一定的参考价值。
Ubuntu 16.04 samba共享homes示例:
注:
1、global下加security = user (只有经过认证的才能访问)
2、 unix password sync = no (默认为yes,改为no个人才有权限执行smbpasswd改密码)
3、访问时要输ip家目录名
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 = Entersnewsspassword: %n
Retypesnewsspassword: %n
passwordsupdatedssuccessfully .
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
访问:\ipzhi.ming (ip后加用户家目录名) 用户名前加ip(ipzhi.ming)
以上是关于Ubuntu 16.04 samba共享homes示例的主要内容,如果未能解决你的问题,请参考以下文章
虚拟机 Linux ubuntu16.04 对 windows 设置共享文件夹教程(samba)(ubuntu16.04换源更换下载源)