vim /etc/samba/smb.conf
[global]
# 与主机名有关的设定信息
workgroup = vbirdhouse
netbios name = vbirdserver
server string = This is vbird's samba server
# 与语系方面有关的设定项目喔,为何如此设定请参考前面的说明
unix charset = utf8
display charset = utf8
dos charset = cp950
# 与登录文件有关的设定项目,注意变量 (%m)
log file = /var/log/samba/log.%m
max log size = 50
# 这里才是与密码有关的设定项目哩!
security = share
# 修改一下打印机的加载方式,不要加载啦!
load printers = no
[temp] <==分享资源名称
comment = Temporary file space <==简单的解释此资源
path = /tmp <==实际 Linux 分享的目录
writable = yes <==是否可写入?在此例为是的
browseable = yes <==能不能被浏览到资源名称
guest ok = yes <==单纯分享时,让用户随意登入的设定值
#smbpasswd -a username
根据提示设置密码,就把username加入到samba用户了
#service smb restart
SAMBA简单配置
最新推荐文章于 2021-11-20 21:44:24 发布