LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-15-2013, 03:55 PM   #1
grahamb314
LQ Newbie
 
Registered: Apr 2011
Posts: 16

Rep: Reputation: Disabled
Sharing home directories -


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:
Code:
-bash-4.1$
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

Last edited by grahamb314; 06-15-2013 at 03:57 PM.
 
Old 06-17-2013, 02:28 AM   #2
jebe88
LQ Newbie
 
Registered: Jan 2012
Location: Germany
Distribution: Debian
Posts: 11

Rep: Reputation: Disabled
It's probably a problem with the access rights between the NAS and the Linux boxes. AFAIK the Linux box will need root access to the NFS share of the NAS because owner/group of the newly created home directory need to be changed. Try exporting the share on the NAS with option "no_root_squash" and mount it on tzhe Linux boxes with option "suid". Hope it works.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Samba =sharing home directories memba4life Linux - Networking 3 05-06-2017 09:18 AM
Sharing directories outside of /home... AudioMechanic Linux - Networking 1 03-16-2005 08:18 PM
sharing directories not in $HOME GTBlackwell Linux - Networking 2 10-23-2003 06:21 PM
File Sharing Between Home Directories scottpioso Linux - General 5 03-10-2003 12:14 PM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration