I have setup winbind to let users authenticate against our Active directory server.
This is working fine and a new /home/domain/xxx folder is created when they login (Where xxx is a username)
I want to host all the /home/domain/* folders on a NAS server so that they are central and so that all a users files are available no matter which server they logon to.
This is what I did:
Setup a NAS server and made a share
On the linux servers I mounted the new share to the /home/domain local folder like this:
mount -t nfs nasserver:/mnt/Volume1 /home/domain
I logged in one of the active directory users and they immediately get logged out, so I logged in again and at the terminal I see this:
usually I get
Code:
username@servername$
I thought that the home folder for the user wasn't created but I found that it had been: (And it shows on the NAS server)
Code:
-bash-4.1$ ls -al /home/domain/myusername/
total 5
drwxr-xr-x. 2 nfsnobody nfsnobody 4 Jun 15 2013 .
drwxr-xr-x. 4 nfsnobody nfsnobody 4 Jun 15 2013 ..
-rw-------. 1 nfsnobody nfsnobody 17 Jun 15 2013 .bash_history
-rw-rw-r--. 1 nfsnobody nfsnobody 0 Jun 15 2013 .bash_profile
I'm not sure what's wrong here but nfsnobody seems suspect
for info since creating home folders for active directory users is done by by winbind, my /etc/pam.d/sshd file has this line:
Code:
session required pam_mkhomedir.so skel=/etc/skel umask=002
Home directories worked before I mounted to the NAS but then I had no shared home folders of course.
Does anyone know how I can get shared home folders to work correctly?
Many thanks