RE: [Samba] Home Directories on the fly?

Golden Butler golden at
Fri Oct 13 16:29:40 GMT 2006

Thanks!  That was right on the money!  You've help me in my bid to get a raise!

- Golden

From: Michael Davidson [mailto:mdavidson at]
To: 'Golden Butler' [mailto:golden at]
Cc: samba at
Sent: Fri, 13 Oct 2006 11:21:23 -0500
Subject: RE: [Samba] Home Directories on the fly?

This baffled me for a while too.  I eventually found a comment to a blog
  article that answered the question.  You have to add
    obey pam restrictions = yes
  to smb.conf
  Also, I wouldn't leave /home/MYDOM with 777 perms.
  -----Original Message-----
  From: at
  [ at] On
  Behalf Of Golden Butler
  Sent: Friday, October 13, 2006 11:06 AM
  To: Samba Mailing List
  Subject: [Samba] Home Directories on the fly?
  Hello all,
  I have a functional samba/windind file server (SLES 10) thats a member
  server of an Active Directory domain.  I'm able to successfully resolve user
  and group accounts from AD.  The problem I'm having is samba isn't creating
  home directories automatically when I try to map to a AD user share from Win
  XP.  What I am able to do is, when I ssh into the machine with an AD user,
  it creates the the home directory.  I can't figure out why because my pam.d
  configs are configured for this to happen.  But obviously I'm missing
  something.  One thing I did try as a result from googling is changing the
  /home/MYDOM directory to 777, but no cigar.  Here's my pam.d configs and
  smb.conf below.  Thanks in advance.
  auth     include        common-auth
  account  include        common-account
  password include        common-password
  session  include        common-session
  auth     include        common-auth
  auth     required
  account  include        common-account
  password include        common-password
  session  include        common-session
  session required
  session required
  session required
          workgroup = MYDOM
          printing = cups
          printcap name = cups
          printcap cache time = 750
          cups options = raw
          logon drive = H:
          idmap gid = 10000-20000
          idmap uid = 10000-20000
          realm = MYDOM.ORG
          security = ADS
          template homedir = /home/%D/%U
          template shell = /bin/bash
          winbind refresh tickets = yes
          winbind enum users = yes
          winbind enum groups = yes
          winbind use default domain = yes
  To unsubscribe from this list go to the following URL and read the

More information about the samba mailing list