am I the only one that pam_mkhomedir+samba makes machine folders for?...was RE: [Samba] pam_mkhomdir.so is creating machine folders when usedwithsamba

Barry Smoke bsmoke at lapo.state.ar.us
Mon Oct 3 15:34:02 GMT 2005


I see a ton of past archive mails for pam_mkhomedir.so, 
but I don't see anyone else with my problem.  Do others just not care
that  a bunch of extra folders with the machine names are getting
created, 
or is it not happening for anyone else, 
and I have just done something wrong?

RHEL 3.04 
samba 2.0.14a-1

Barry Smoke
Network Administrator
AR Division of Leg. Audit



-----Original Message-----
From: samba-bounces+bsmoke=lapo.state.ar.us at lists.samba.org
[mailto:samba-bounces+bsmoke=lapo.state.ar.us at lists.samba.org] On Behalf
Of Barry Smoke
Sent: Friday, September 30, 2005 10:02 AM
To: samba at lists.samba.org
Subject: RE: [Samba] pam_mkhomdir.so is creating machine folders when
usedwithsamba

I have tried changing the valid users on the [homes] share to %D+%u,
instead of leaving the default, thinking it might be trying %S, which
might have been causing the machine name folders to be created, 
that was not it, 

I tried changing the location of the pam_mkhomedir.so session string.
I moved it to /etc/pam.d/samba, 
I moved it to the last string in system-auth,
nothing has made a difference.

I can't find a pam option to keep this from happening, 
and I did find a samba thread on this list about this being by design, 
and they eventually went with a pre-exec script.

I see a ton of pam_mkhomedir threads on the samba list, 
but none of them mention the machine name directory getting created, and
how to prevent it.

Any help would be greatly appreciated.

Barry Smoke




-----Original Message-----
From: samba-bounces+bsmoke=lapo.state.ar.us at lists.samba.org
[mailto:samba-bounces+bsmoke=lapo.state.ar.us at lists.samba.org] On Behalf
Of Barry Smoke
Sent: Thursday, September 29, 2005 10:22 AM
To: samba at lists.samba.org
Subject: [Samba] pam_mkhomdir.so is creating machine folders when used
withsamba

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

 

[global]

workgroup = audit

netbios name = Storage1

server string = Storage1

security = ADS

encrypt passwords = yes

realm = AUDIT.LOCAL

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

[homes]

comment = Home Directories

#valid users = %S

read only = no

browseable = no

vfs objects = recycle:keeptree

 

 

 

 

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

#%PAM-1.0

# 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
type=

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

 

 

 

Thanks,

Barry Smoke

Network Administrator

AR Division of Legislative Audit

 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list