All, I have recently modified our Unix SMB server so that the password serving is now done from an NT box thus : security = server password server = Manchester This has raised a number of issues : 1. Has anybody found a way of using the [homes] section to automap the users home directories (Unix) when they accessing from an NT box? How does it know where they are? If not I suspect this means I'll have to have an individual section for each user share :-( 2. How do I shared against an NT group as opposed to a Unix group? At the moment I only seem to be able to share against public or 1 user... Thanks in advance, Anthony Farrow a.n.farrow@cranfield.ac.uk
Fred, Thanks for the info. However, if I can clarify a few things with you it would help :> That is one of the fundamental features of Samba, the "homes" > directories. It checks the password files and mounts the file > space mapped to the user name who logs in. It will even work > with NIS maps and automounters with NFS file space (I do that). > All this is not to say that it will work the first time, though. > May take some fiddling as you understand the capabilities. It's > all in the documentation.If I am using the password server as an NT box then there is no local NIS/passwd/smbpasswd file and so if I connect via an NT box how does samba know where the home directory is? Or do I have to maintain a local passwd file as well?> Sharing against NT groups would (in the way you probably want to) be > difficult (I'm assuming you have an NT domain controller somewhere). > I've had to maintain group files on the unix side as well.The password server is also a domain controller yes. Sorry for being such a pain but I'm stuck here. Regards, Anthony --------------------------------------- Anthony Farrow BSc.(Hon.) Systems Programmer Cranfield University, England Tel : (01234) 754200 ext. 2833 Email : a.n.farrow@cranfield.ac.uk Home Page under construction (slow!) at : http://www.cranfield.ac.uk/~ccanf "Peace Through Superior Firepower" ----------------------------------------
> > That is one of the fundamental features of Samba, the "homes" > > directories. It checks the password files and mounts the file > > space mapped to the user name who logs in. It will even work > > with NIS maps and automounters with NFS file space (I do that). > > All this is not to say that it will work the first time, though. > > May take some fiddling as you understand the capabilities. It's > > all in the documentation. > > If I am using the password server as an NT box then there > is no local NIS/passwd/smbpasswd file and so if I connect > via an NT box how does samba know where the home directory > is? Or do I have to maintain a local passwd file as well? >You will have to specify \\sambaserver\homes in the NT user profile as the home directory. I think I understand you that the user's home in located on the samba server, correct? You can specify your [homes] share like this... [homes] comment = Unix Home Directories browseable = yes path = /export/home/%u read only = no public = no create mode = 0700 directory mode = 0700 The trick is that you specify an absolute path for the directory share. I do this in several of our labs where the home disk space is local and separate from the user's unix home directory ( as listed in /etc/passwd ). Hope this helps, j- ________________________________________________________________________ Gerald ( Jerry ) Carter Engineering Network Services Auburn University jerry@eng.auburn.edu http://www.eng.auburn.edu/users/cartegw "...a hundred billion castaways looking for a home." - Sting "Message in a Bottle" ( 1979 ) ________________________________________________________________________