Samba 服务的配置

来源:互联网 发布:张逗张花家很富吗 知乎 编辑:程序博客网 时间:2024/05/21 14:41

1、smb.conf 配置文件

[global]
#工作组
workgroup = xulei
#设置samba服务器名称
server string = Samba Server
#设置服务器访问别名
netbios name = SambaServer
#设置samba服务器安全级别为user,即以账号和口令访问
security = user

[xulei]
#共享文件地址
path = /home/xulei
#不公开目录
public = no
#共享目录可以读写
writeable = yes
#只允许xulei用户访问
valid user = xulei
#允许xulei浏览/home/xulei 文件夹
browseable = yes


2、使用smbpasswd -a 添加 访问服务器的用户

3、输入密码

4、使用 service smb start 命令 启动Samba 服务器

5、使用 service nmb start 命令 启动Samba 别名服务器

0 0
原创粉丝点击