免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4645 | 回复: 2
打印 上一主题 下一主题

suse linux下samba权限配置 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-11-01 13:17 |只看该作者 |倒序浏览
etc/samba/smb.conf
[global]
workgroup = WORKGROUP
netbios name = tgwms_share
server string = tgwms_share
security = user
wins server = tgwms_share
wins support = No
passdb backend = smbpasswd

#    hosts allow = 192.168.1.0/24 192.168.5.200 allow ip

[tgwl_share]
public = yes
path = /opt/tgwl_share/
read only = No
browseable = yes
writable = yes
read list = administrator,youcan
write list = administrator
#valid users = youcan,tgwl
create mask = 7777
directory mask = 7777
guest ok = yes

/etc/samba/smbpasswd
# This file is the authentication source for Samba if 'passdb backend' is set
# to 'smbpasswd' and 'encrypt passwords' is 'Yes' in the [global] section of
# /etc/samba/smb.conf
#
# See section 'passdb backend' and 'encrypt passwords' in the manual page of
# smb.conf for more information.
youcan:1000:FBD1313A9AD5D98D7C3113B4A1A5E3A0:3F926DA01A3127E0B0AD59CB14B09B7C:[U          ]:LCT-4A66A1CF:
administrator:1002:BDCD7D152361F50908B7ADA247B6B378:00C8CA3F49009D37F12F77FCD3BAF512:[U          ]:LCT-4C133E1A:

/etc/samba/smbusers
# This file allows you to map usernames from the clients to the server.
# Unix_name = SMB_name1 SMB_name2 ...
#
# See section 'username map' in the manual page of smb.conf for more
# information.
#
# This file is _not_ included in the default configuration as it makes the
# usage of an user named administrator impossible.

root = administrator
;nobody = youcan

配置完后重新启动samba
rcsmb restart
rcnmb restart

论坛徽章:
0
2 [报告]
发表于 2010-11-02 16:01 |只看该作者
samba感觉现在用得少了

论坛徽章:
1
白羊座
日期:2014-05-04 17:53:33
3 [报告]
发表于 2010-11-13 21:32 |只看该作者
create mask = 7777
directory mask = 7777

请问第一个7是什么意思?我只知道1777的1是粘贴位。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP