[Samba] Sambauser can't use his homeshare but other shares - smb.conf
Mario Constanti
Mario.Constanti at x-cellent.com
Tue Oct 6 00:07:43 MDT 2009
Ok, here is my smb.conf-File.
If i use the [homes]-Section,
I can mount my home-share only if
I first connected to an other share.
If I use the [Mario]-Section,
I can mount it on the first run.
[global]
workgroup = example
netbios name = mounteverest
password server = 192.168.2.200
security = ads
realm = EXAMPLE.LOCAL
encrypt passwords = yes
local master =no
os level = 20
domain master = no
preferred master = no
time server = Yes
keepalive = 30
create mask = 0740
directory mask = 0750
log file = /var/log/samba/log.%m
log level = 3 passdb:5 auth:10 winbind:2
nt acl support = yes
winbind separator = +
idmap backend = idmap_rid:example=10000-19999
idmap gid = 10000-19999
idmap uid = 10000-19999
template shell = /bin/bash
winbind use default domain = yes
winbind enum users = yes
winbind enum groups = yes
# von mario hinzugefuegt um 18:42 am 19.09.09
winbind nested groups = yes
wins server = 192.168.2.200
# von mario hinzugefuegt um 18:42 am 19.09.09
template homedir = /data/shares/home/%U
template shell = /bin/bash
#[homes]
# comment = Home Directories
# path = /data/shares/home/%U
# force group = @EXAMPLE+dir_home
# read only = No
# create mask = 0600
# directory mask = 0700
# browseable = No
[mario]
path = /data/shares/home/mario
valid users = EXAMPLE+mario
force group = @EXAMPLE+dir_home
read only = No
create mask = 0600
force create mode = 0700
[nobackup]
path = /data/shares/nobackup
valid users = @EXAMPLE+dir_nobackup
force group = @EXAMPLE+dir_nobackup
read only = No
create mask = 0750
force create mode = 0770
force directory mode = 0770
[public]
path = /data/shares/public
valid users = @EXAMPLE+dir_public
force group = @EXAMPLE+dir_public
read only = No
create mask = 0750
force create mode = 0770
force directory mode = 0770
[security]
path = /data/shares/security
valid users = @EXAMPLE+dir_security
force group = @EXAMPLE+dir_security
read only = No
create mask = 0750
force create mode = 0770
force directory mode = 0770
More information about the samba
mailing list