红联Linux门户
Linux帮助
当前位置: 红联Linux门户 > Debian

如何在debian里快速配置samba

发布时间:2009-06-09 15:46:29来源:红联作者:johnson.pan
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 服务)
文章评论

共有 1 条评论

  1. Tfisup 于 2009-06-09 16:21:28发表:

    路过学习