K12LTSP,Samba,Windows Vista Client Home Folders Interoperabilty how to

From K12LTSP Wiki

Jump to: navigation, search

How to get Samba shares , Home Folders to mount seamlessly on Windows Vista Clients

This is setup for an older version of Samba 3.0.10 on FC3 K12LTSP so most entries should be valid with newer versions of Samba as well. Firstly, You should not need to do the Windows Vista hack to the registry as is found in most Samba Windows Vista fixes when you do a search. This is the lower the default NTLM2 to NTLM1 & NTLM2 if found hack. Secondly, this setup works for an Windows 2003 Server domain network. Needed Prerequisites Samba,krb5,pam,winbind.

1. You will need to edit two files in the / etc / pamd directory add the following line

session required pam_mkhomedir.so skel= / etc / skel umask=0077

to gdm & login files at the end of each file & SAVE You should not need to add any folders into the etc skel directory unless you want optional folders to be brought into each users home directory. EX Possibly a MySavedThings folder.

2. Edit your etc krb5.conf file to reflect your domain name. Make sure the REALM lising is in UPPERCASE!

3. edit your smb.conf file to match the following Global link,,,

Global



4. in your etc nsswitch.conf file edit the following three lines to match this

passwd      files winbind
shadow      files winbind
group       files winbind

5. Now join your Samba server to your AD domain server with the following command

net ads join

If your Samba to Domain join fails, Troubleshooting to use for domain joining failures would be wbinfo , kinit , klist , and others.

6. The last item is probably the one that gives people the most greif. On your AD Windows 2003 Server after making your users,in Acive Directory Users and Computers, select the Profile tab. Select H drive as logon drive then in the path put

\\sambaservername \% username %

NOT

\\sambaeservername\homes\% username % 

The NOT enrty will try and make the users home folder "inside" of the actual share folder! You should not have a working Samba server that will logon Windows Vista(& XP and Win2K clients as well).

A good reference is to go to http samba.org and read the "Samba by examples" in the help section. This is also in your usr share docs samba directory as well.

Sorry for the ugly formatting here.

Take Care

Personal tools