当前位置:  首页  >  服务器技术  >  Linux/unix  >  Linux系统

如何在debian里快速配置samba

如何在debian里快速配置samba--Linux发行版技术-Debian信息,下面是详情阅读。
1.mkdir "share fold name"
2.groupadd "group name",我分别建立"pd1 and pd2“组
3.adduser "username",创建samba用户
4.vim /etc/samba/smb.conf
---------------------------------------------------------------------------------------------------
[global]
workgroup = WORKGROUP
map to guest = Bad User
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
name resolve order = bcast host lmhosts wins
max log size = 0
time server = Yes
deadtime = 5
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
printcap name = cups
logon drive = P:
os level = 0
domain master = No
wins server = eth0:192.168.5.99, eth0:192.168.200.4
read only = No
create mask = 0770
directory mask = 0775
cups options = raw
include = /etc/samba/dhcp.conf

[homes]
comment = Home Directories
valid users = %S, %D%w%S
inherit acls = Yes
browseable = No

[pd1]
comment = pd1
path = /pd1
create mask = 0775

[pd2]
comment = pd2
path = /pd2
create mask = 0775
[software]
comment=software
path=/software
create mask=0777

5.chmod g+w pd1
6.chmod g+w pd2
7.smbpasswd -a pd1(给samba用户设置密码)
8./etc/init.d/samba restart (重起samba 服务)
吐了个 "CAO" !
扫码关注 PHP1 官方微信号
PHP1.CN | 中国最专业的PHP中文社区 | 凯发国际娱乐 | 凯发国际娱乐下载 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | PHP问答
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved PHP1.CN 第一PHP社区 版权所有