[Samba] pam_mkhomedir.so not working.

Francis Galiegue fg at one2team.com
Tue Feb 26 14:56:29 GMT 2008


Le mardi 26 février 2008, Bjoern Tore Sund a écrit :
[...]
> > mkdir("/home/DOM/user1", 0700)    = -1 EACCES (Permission denied)
> > time([1203973003])                      = 1203973003
> > 
[...]
> 
> On Fedora Core 5, Fedora Core 6 and RHEL4 I saw the same because 
> pam_mkhomedir didn't do 'mkdir -p' only 'mkdir' - it assumed the 
> existence of the entire tree and wanted to only create the user's 
> personal directory.
> 

Hmm, when the parent directory does not exist, mkdir(2) is supposed to return 
ENOENT, not EACCESS.

-- 
Francis Galiegue, One2team - fg at one2team.com
[ATTENTION : CHANGEMENT DE COORDONNÉES !]
+33178945552, +33683877875, http://www.one2team.com
40 avenue Raymond Poincaré - 75116 PARIS


More information about the samba mailing list