歡迎您光臨本站 註冊首頁

/etc/samba/smb.conf 配置疑問

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

global]
workgroup = MSHOME
passdb backend = tdbsam
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
domain logons = Yes
domain master = Yes
local master = Yes
os level = 65
preferred master = Yes
security = shared
usershare max shares = 100
[homes]
comment = Home Directories
path = /home
# valid users = root, zyd
browseable = No
read only = No
# inherit acls = Yes

[users]
comment = All users
path = /root
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[print$]
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

[netlogon]
comment = Network Logon Service
path = /var/lib/samba/netlogon
write list = root

[sharefolder]
comment = Network Profiles Service
create mask = 0600
directory mask = 0700
path = %H
read only = No
store dos attributes =
# Public = yes
# valid users = root

為什麼我如上設置的samba配置文件,在windows中登錄時發現沒有[homes],卻有一個【root】的共享目錄,指向linux中的/home文件夾,
另外,[sharefolder]的目錄指向和【usr】一致,都指向/root文件夾,這是為什麼呢 ?

[火星人 ] /etc/samba/smb.conf 配置疑問已經有395次圍觀

http://coctec.com/docs/linux/show-post-104249.html