您的位置:首页 > 运维架构 > Linux

linux 配置samba 共享盘服务。

2018-02-25 09:30 453 查看
1、安装samba服务 : apt-get install samba
2、创建一个系统用户和samba 进行绑定 : useradd testuser,然后为用户创建一个密码passwd testuser
3、修改samba服务配置文件 ,在/etc/samba/smb.conf 文件末尾追加如下内容:
[printers]
comment = All Printers
browseable = no
path = /home/pbc/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

[print$]
comment = Printer Drivers
path = /home/pbc/samba
browseable = yes
read only = yes
guest ok = no

[homes]
comment = Home Directories
browseable = yes
read only = no
create mask = 0664
directory mask = 0775
valid users = %S

4、 重启samba服务:service smbd restart
5、 windows系统挂在磁盘命令: net use /user:pbc \xx.xx.xx.xx\pbc passwd
6、 ok
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  samba 共享方法