[Samba] Everything but [Homes] works

Stephen Carville effcee at heronforge.net
Mon May 15 05:58:31 GMT 2006


Adam Nielsen wrote:
>>I'm currently testing from a Window 2003 terminal server and, If I use
>>run->\\file-cabinet I can see all the listed shares and all _except_
>>the home directory are accessible.
>>
>>[homes]
>>         comment = Home Directory
>>         path = /export/private/%S
>>         hide dot files = yes
>>         valid users = %S
>>         read only = No
>>         browseable = No
> 
> 
> Is it possible that /export/private/%S doesn't exist?  (i.e. %S isn't
> what you're expecting it to be?)
> 
> If you set the path to /tmp or something, does that make the share
> appear?

All the shares appear, I just cannot access the home directory.  I tried 
changing the share path to /tmp with the same results.  After playing 
around a bit I was able to get some useful messages:

[2006/05/14 22:41:16, 4] smbd/reply.c:reply_tcon_and_X(618)
   Client requested device type [?????] for share [SCARVILLE]
[2006/05/14 22:41:16, 5] smbd/service.c:make_connection(776)
   making a connection to 'homes' service [SCARVILLE] created at session 
setup time
[2006/05/14 22:41:16, 3] lib/access.c:check_access(313)
   check_access: no hostnames in host allow/deny list.
[2006/05/14 22:41:16, 2] lib/access.c:check_access(324)
   Allowed connection from  (192.168.124.134)
[2006/05/14 22:41:16, 10] lib/username.c:user_in_list(583)
   user_in_list: checking user TOTALFLOOD\scarville in list
[2006/05/14 22:41:16, 10] lib/username.c:user_in_list(587)
   user_in_list: checking user |TOTALFLOOD\scarville| against |scarville|
[2006/05/14 22:41:16, 2] smbd/service.c:make_connection_snum(318)
   user 'TOTALFLOOD\scarville' (from session setup) not permitted to 
access this share (scarville)
[2006/05/14 22:41:16, 3] smbd/error.c:error_packet(147)
   error packet at smbd/reply.c(626) cmd=117 (SMBtconX) 
NT_STATUS_ACCESS_DENIED
[2006/05/14 22:41:16, 5] lib/util.c:show_msg(454)
[2006/05/14 22:41:16, 5] lib/util.c:show_msg(464)
   size=35
   smb_com=0x75
   smb_rcls=34
   smb_reh=0


I changed the section to:

[homes]
         comment = Home Directory
         path = /export/private/%U
         hide dot files = yes
         valid users = TOTALFLOOD\%S
         read only = No
         browseable = No

And I can now access the directory ... but it's read-only

Oh well, it's progress of a sort...

> I'm just wondering whether %S is of the form "username" or
> "DOMAIN\username", and whether case sensitivity is important.  I'm
> guessing it is, being in a UNIX path name.
> 
> Cheers,
> Adam.


More information about the samba mailing list