Simeonidis, Steve
2002-Oct-03 02:59 UTC
[Samba] Another winbind question (hopefully easy one)
I setup SAMBA to use winbind to authenticate of a WinNT PDC In the smb.conf I have a line template homedir = /home/winnt/%U which is file I also use the pam module to create directories for new users pam_mkhomedir.so skel=/etc/sambaskel umask=0077 which is fine again. My problem is that I can't tell or how do I tell pam_mkhomedir to create the directories in /home/winnt/<user> instead it creates them in /home/<user> Any ideas????? Thanks -- Steve Simeonidis Network Engineer, Spherion Education Spherion Group Ltd 1st Floor, 493 St. Kilda Rd, Melbourne VIC 3004, Australia Phone: +61 3 9243 2382 Fax: +61 3 9820 2010 Email: stevesimeonidis@spherion.com The information contained in this email and any attachments to it: (a) may be confidential and if you are not the intended recipient, any interference with, use, disclosure or copying of this material is unauthorised and prohibited; and (b) may contain personal information of the recipient and/or the sender as defined under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to collect, hold and use such information and any personal information contained in a response to this email, for any reasonable purpose in the ordinary course of Spherion's business, including forwarding this email internally or disclosing it to a third party. All personal information collected by Spherion will be handled in accordance with Spherion's Privacy Policy. If you have received this email in error, please notify the sender and delete it.
On Thu, 3 Oct 2002, Simeonidis, Steve wrote:> I setup SAMBA to use winbind to authenticate of a WinNT PDC > > In the smb.conf I have a line > template homedir = /home/winnt/%U > which is file > > I also use the pam module to create directories for > new users > pam_mkhomedir.so skel=/etc/sambaskel umask=0077 > > which is fine again. > > > My problem is that I can't tell or how do I tell pam_mkhomedir > to create the directories in /home/winnt/<user> > instead it creates them in /home/<user> > > Any ideas?????You should check with getent passwd is the settings in smb.conf are visible. getent passwd displays a passwd listing that is the combination of the /etc/passwd en the information winbind imports from you windows domain. If getent doesn't report back the correct /home dir then make sure you edited the correct smb.conf file and maybe try to restart winbind to make in reload (maybe seding a -SIGHUP would also work) the smb.conf file. Kind regards, Tim Verhoeven -- ==========================================================================Tim Verhoeven Linux & Open Source Specialist GSM : 0496 / 693 453 + e-business solutions Email : dj@4ict.com + consulting URL : www.sin.khk.be/~dj/ + Server consolidation ===========================================================================