[Samba] pam_mkhomdir.so is creating machine folders when used with samba

Barry Smoke bsmoke at lapo.state.ar.us
Thu Sep 29 16:21:57 GMT 2005

Hello Samba Users,

I recently found out about pam_mkhomedir.so, and now use it on a couple
of servers.  It works great, 

except that it is constantly creating directories for the machines that
connect also.

is my problem in my pam config, or my samba config?

What can I do to keep this from happening?



here is my config



workgroup = audit

netbios name = Storage1

server string = Storage1

security = ADS

encrypt passwords = yes


obey pam restrictions = yes

idmap uid = 15000-20000

idmap gid = 15000-20000

winbind separator = +

winbind use default domain = yes

use sendfile = yes

log level = 1 passdb:5 auth:1 winbind:1

template homedir = /data/%D/%U

#template shell = /bin/bash

time server = yes


comment = Home Directories

#valid users = %S

read only = no

browseable = no

vfs objects = recycle:keeptree





[root at localhost pam.d]# cat system-auth


# This file is auto-generated.

# User changes will be destroyed the next time authconfig is run.

auth        required      /lib/security/$ISA/pam_env.so

auth        sufficient    /lib/security/$ISA/pam_unix.so likeauth nullok

auth        required      /lib/security/$ISA/pam_deny.so


account     required      /lib/security/$ISA/pam_unix.so


password    required      /lib/security/$ISA/pam_cracklib.so retry=3

password    sufficient    /lib/security/$ISA/pam_unix.so nullok
use_authtok md5 shadow

password    required      /lib/security/$ISA/pam_deny.so

session     sufficient    /lib/security/$ISA/pam_mkhomedir.so
skel=/etc/skel/ umask=0022


session     required      /lib/security/$ISA/pam_limits.so

session     required      /lib/security/$ISA/pam_unix.so





Barry Smoke

Network Administrator

AR Division of Legislative Audit


More information about the samba mailing list