热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

如何在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 服务)
推荐阅读
author-avatar
林姗飘零1999
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有