Hello. I've been a Samba user for quite a while, but I've had a bit of trouble getting the newer winbind stuff to work as I require, and was hoping someone might be able to help. I'm not subscribed to the list, so if you would CC me or e-mail me privately, that would be greatly appreciated. Right now I'm using winbind to fit into our NT domain. I'd *like* to have the system automatically create home directories whenever a user connects, but the default [homes] connection tries to connect to share <domain+user> instead of <user>, which doesn't exist. Specifically, it gives me the error "couldn't find service mydomain+mylogin" in my log.smbd file. I though about using preexec to 'mkdir -p /home/%u', but that doesn't seem to work (perhaps it doesn't get to the preexec part because the directory doesn't exist?) Strangest part is that I create a /home/domain+user directory, but it still gives the same error in the logs. Am I missing something? Is there a better way to do this? Thanks! -- Geoff Silver <geoff at uslinux dot net> "If Bill Gates had a nickel for every time Windows crashed... Oh wait, he does"
I think template homedir = /home/%U will solve part of your problem. (%U is probably different than %u, too.) -----Original Message----- From: Geoff Silver [mailto:geoff@uslinux.net] Sent: Friday, December 14, 2001 12:10 PM To: samba@samba.org Subject: Tricky Samba Issue Hello. I've been a Samba user for quite a while, but I've had a bit of trouble getting the newer winbind stuff to work as I require, and was hoping someone might be able to help. I'm not subscribed to the list, so if you would CC me or e-mail me privately, that would be greatly appreciated. Right now I'm using winbind to fit into our NT domain. I'd *like* to have the system automatically create home directories whenever a user connects, but the default [homes] connection tries to connect to share <domain+user> instead of <user>, which doesn't exist. Specifically, it gives me the error "couldn't find service mydomain+mylogin" in my log.smbd file. I though about using preexec to 'mkdir -p /home/%u', but that doesn't seem to work (perhaps it doesn't get to the preexec part because the directory doesn't exist?) Strangest part is that I create a /home/domain+user directory, but it still gives the same error in the logs. Am I missing something? Is there a better way to do this? Thanks! -- Geoff Silver <geoff at uslinux dot net> "If Bill Gates had a nickel for every time Windows crashed... Oh wait, he does" -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
On Fri, 14 Dec 2001, Geoff Silver wrote:> Hello. I've been a Samba user for quite a while, but I've had a bit of > trouble getting the newer winbind stuff to work as I require, and was > hoping someone might be able to help. I'm not subscribed to the list, so > if you would CC me or e-mail me privately, that would be greatly > appreciated. > > Right now I'm using winbind to fit into our NT domain. I'd *like* to have > the system automatically create home directories whenever a user connects, > but the default [homes] connection tries to connect to share <domain+user> > instead of <user>, which doesn't exist. Specifically, it gives me the > error "couldn't find service mydomain+mylogin" in my log.smbd file. > > I though about using preexec to 'mkdir -p /home/%u', but that doesn't seem > to work (perhaps it doesn't get to the preexec part because the directory > doesn't exist?) Strangest part is that I create a /home/domain+user > directory, but it still gives the same error in the logs. Am I missing > something? Is there a better way to do this? Thanks!I've heard that people have success with the PAM mkhome module. Perhaps you should look at that. I've just had a quick look on google and I don't seem to be able to find it. I heard about it on this mailing list so pehaps the archives will help. Yours Tony. /* * "The significant problems we face cannot be solved at the * same level of thinking we were at when we created them." * --Albert Einstein */