歡迎您光臨本站 註冊首頁

suse linux下samba許可權配置

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

suse linux下samba許可權配置

etc/samba/smb.conf

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


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 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::LCT-4A66A1CF:
administrator:1002:BDCD7D152361F50908B7ADA247B6B378:00C8CA3F49009D37F12F77FCD3BAF512::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
《解決方案》

samba感覺現在用得少了
《解決方案》

create mask = 7777
directory mask = 7777

請問第一個7是什麼意思?我只知道1777的1是粘貼位。

[火星人 ] suse linux下samba許可權配置已經有598次圍觀

http://coctec.com/docs/service/show-post-16040.html