Hi, I am running a RedHat 7.3 with Pam-0.75 I could not get pam_mkhomedir to work, so I added some debug Information: epw= getpwuid( geteuid()); _log_err(LOG_DEBUG,"euid is %s(%d) uid:%d euid:%d",epw->pw_name,epw->pw_uid, getuid(),geteuid()); mkdir("/tmp/foo",0700); /* Create the new directory */ if (mkdir(dest,0720) != 0) then I did this: $ sudo su - foo su: warning: cannot change directory to /home/foo: No such file or directory Creating directory '/home/foo'. could not open session which generated this in the logs: pc-js PAM-mkhomedir[611]: euid is root(0) uid:0 euid:0 and this: $ ls -la /tmp/|grep foo drwx------ 2 foo root 4096 02-25 11:10 foo It seems that even if uid and euid is 0 the directory is created as user foo.root. I changed /home to this: drwxrwxr-x 7 root root 4096 02-25 11:28 home And now the directory gets created, but the copying fails with the inability to change the permissions on the newly copied files. Any Ideas? What about fork/exec/wait_pid with a "tar -xzf /etc/skel.tgz" as exec? This should give me the right permissions on the files, and work around the permission change problem? by Stefan -- -------------------------------------------------------------------- Stefan Völkel stefan.voelkel@millenux.com Millenux GmbH mobile: +49.170.79177.17 Lilienthalstraße 2 phone: +49.711.88770.300 70825 Stuttgart-Korntal fax: +49.711.88770.349 -= linux without limits -=- http://linux.zSeries.org/ =- _______________________________________________ Pam-list@redhat.com https://listman.redhat.com/mailman/listinfo/pam-list