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
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
相关文章推荐
- linux中配置samba共享服务
- 解决在Fedora 12 中配置后Samba服务后,Windows依然无法访问Linux共享目录的问题。
- Linux总结笔记6-配置Samba服务实现Linux和Windows之间文件共享
- Linux与Windows 共享文件Samba 服务的安装于配置
- Linux下简单配置SAMBA服务,实现与Windows系统文件共享.
- 【Linux】 Samba 服务器安装配置实现与Windows系统的文件共享服务
- 关于redhat下配置samba服务实现linux和window共享
- Linux存储实验五:Samba服务共享文件权限配置
- linux中开启samba服务实现文件共享
- linux下samba服务配置
- Linux Min装机--配置samba实现文件夹共享
- 在linux上安装配置samba服务
- 在linux上搭建samba服务实现与windows的文件共享
- ubuntu 12.04 配置samba共享服务 实践篇更新中
- 实战Ubuntu 12.04 配置Samba共享服务
- Linux下Samba服务配置笔记
- linux与window文件目录共享——samba配置及在windows映射
- Linux下配置Samba实现文件共享
- Java通过Samba服务操作Linux共享文件
- linux配置Samba服务