Hi I am running a RH9 box in a w2k domain. I have installed winbind on the RH9 box joined it to the domain successfully. Domain users can login with their accounts. The problem is when they login they get a message stating that their home dir doesnt excists. How can i map their home dir that is on a w2k member server and how can i create their home dir on the RH9 box when the domain users login? I would prever to map their home dir from the member server. Regards __________________________________________________________________________ http://www.webmail.co.za/dialup Webmail ISP - Cool Connection, Cool Price
I had to make a script to do that automatically ------- #!/usr/bin/perl use File::Path; $USER = $ARGV[0]; $GROUP $ARGV[1]; $HOMEDIR = "/home/users/".$USER; if ( ($USER ne "guest") && ($USER ne "nobody") ) { open (FILEHANDLE, "$HOMEDIR"); if ( ! -e FILEHANDLE) { mkdir($HOMEDIR,0750); `chown "$USER"."$GROUP" $HOMEDIR`; } } ---------------------------- and place into /home/netlogon (or anywhere you want) I add into [homes] root preexec = /home/netlogon/mk_homedir.pl "%U" "%G" BLOCKQUOTE { BORDER-LEFT:#1F4687 1px solid; padding-left:20px; margin-left: 0px; }-----Original Message----- From: "IT Clown" <linux@mailbox.co.za> Sent: Friday, 12. Mar 2004 9:38 -0800 To: samba@lists.samba.org Subject: [Samba] mapping home dir Hi I am running a RH9 box in a w2k domain. I have installed winbind on the RH9 box joined it to the domain successfully. Domain users can login with their accounts. The problem is when they login they get a message stating that their home dir doesnt excists. How can i map their home dir that is on a w2k member server and how can i create their home dir on the RH9 box when the domain users login? I would prever to map their home dir from the member server. Regards http://www.webmail.co.za/dialupWebmail ISP - Cool Connection, Cool Price -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Friday, March 12, 2004 12:38 PM IT Clown wrote:> > Hi > > I am running a RH9 box in a w2k domain. I have installed > winbind on the RH9 box joined it to the domain > successfully. Domain users can login with their accounts. > The problem is when they login they get a message stating > that their home dir doesnt excists. How can i map their > home dir that is on a w2k member server and how can i > create their home dir on the RH9 box when the domain users > login? I would prever to map their home dir from the member > server. >Use pam_mkhomedir to make your local home directories (see the pam docs for how to do this). To mount a Windows home share on which a user has permissions, use pam_mount. This module will transfer the password using PAM that a user enters during login to the appropriate mount command. Download pam_mount from: http://www.flyn.org/projects/pam_mount/index.html Read the docs. Here is my configuration: /etc/security/pam_mount.conf: (last line in the file) volume * smb WinServer & /home/&/WinHome uid=&,gid=& - - Edit the /etc/pam.d/ files accordingly.