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文件夹,这是为什么呢 ?
vfdff 于 2010-06-25 01:04:10发表:
谢谢您的关注,我刚才无意间发现 按照我上面的配置,root被显示在网上邻居中,而 【usr】和【netlogon】则需要在windows的运行处输入虚拟机的Ip地址
\\192.168.63.130 才可以看到
[attach]31176[/attach]
lliang727 于 2010-06-24 08:18:38发表:
在windows中登录时发现没有[homes],应该是这一项browseable = No设置了目录的可见型吧,[sharefolder]的目录指向和【usr】一致,是由于%H表示当前服务的用户的Home目录。希望对你有用!