[Samba] mapping home dir
Loc Nguyen
nguyenbloc at tuluc.com
Fri Mar 12 19:34:00 GMT 2004
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 at mailbox.co.za>
Sent: Friday, 12. Mar 2004
9:38 -0800
To: samba at 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
More information about the samba
mailing list