Mario Constanti
2009-Oct-05 11:29 UTC
[Samba] Sambauser can't use his homeshare but other shares - smb.conf
[This email is either empty or too large to be displayed at this time]
Mario Constanti
2009-Oct-06 06:07 UTC
[Samba] Sambauser can't use his homeshare but other shares - smb.conf
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
Mario Constanti
2009-Oct-07 05:37 UTC
[Samba] Sambauser can't use his homeshare but other shares - smb.conf
Hi Dale, Hi Samba-List, i have tried your suggestion but it doesn't work. I've got the same error. My posix permissions on the filesystem are correct. Here is my #ls -lha output: root at mounteverest:/data/shares# ls -lah total 53K drwxr-xr-x 14 administrator root 4.0K 2009-10-01 09:40 . drwxr-xr-x 4 root root 4.0K 2009-09-19 09:32 .. drwxr-x--- 3 root root 4.0K 2009-09-18 11:45 admin drwxr-x--- 4 root root 4.0K 2009-09-19 09:07 backup drwx------ 3 administrator root 1.0K 2009-04-22 17:17 ebs drwxr-s--- 24 administrator dir_home 4.0K 2009-10-01 11:30 home drwxrws--- 25 administrator dir_nobackup 4.0K 2009-10-05 16:49 nobackup drwxrws--- 11 administrator dir_public 4.0K 2009-03-17 08:20 public drwxrws--- 19 administrator dir_security 4.0K 2007-05-19 08:06 security administrator und the dir_*-Groups are from the Active Directory. Here something from my logfile: [2009/10/07 07:22:37, 3] smbd/password.c:register_vuid(304) User name: nobody Real name: nobody [2009/10/07 07:22:37, 3] smbd/password.c:register_vuid(325) UNIX uid 65534 is UNIX user nobody, and will be vuid 101 ... [2009/10/07 07:22:37, 3] smbd/sec_ctx.c:set_sec_ctx(241) setting sec ctx (65534, 65534) - sec_ctx_stack_ndx = 0 [2009/10/07 07:22:37, 3] smbd/service.c:make_connection_snum(1033) winxpnotebook (192.168.2.26) connect to service IPC$ initially as user nobody (uid=65534, gid=65534) (pid 8613) Any other ideas? -----Urspr?ngliche Nachricht----- Von: Dale Schroeder [mailto:dale at BriannasSaladDressing.com] Gesendet: Dienstag, 6. Oktober 2009 15:32 An: Mario Constanti Betreff: Re: [Samba] Sambauser can't use his homeshare but other shares - smb.conf Mario, I would try this in [homes] 1. Do not use the "force group" parameter. 2. Add valid users = EXAMPLE+%S You shouldn't have to declare the path again because you already set it in "template homedir", but you can leave it if desired. Your other settings appear to be quite reasonable, and should not cause any problems. I have assumed that your posix permissions are correct for EXAMPLE+mario and EXAMPLE+dir_home to navigate the entire /data/shares/home path. Dale