LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 02-11-2010, 07:09 PM   #1
Deathkarr
LQ Newbie
 
Registered: Nov 2009
Posts: 20

Rep: Reputation: 0
Question NFS client issue


Hi all. I've been following a how to from linux home networking that tells me how to share home directories. Though I have run into a problem on the client side. Upon trying to log in from a user on the server it comes up with the following:

Your home directory is listed as /home/useraccount but it does not appear to exist do you want to log in with the / (root) directory as your home directory.

After saying yes as no returns you back to log in screen it comes up with the following message

User's $HOME/.dmrc file is being ignored. This prevents the default session and language from being saved. File should be owned by user and have 644 permissions. User's home directory must be owned by user and not writable by others

It then goes to a blank screen for a while before returning to the login screen again. Can someone please help
 
Old 02-11-2010, 08:17 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, I will rephrase your question to frame my response. You are trying to login to (not mount an NFS share on) a presumably Linux host. The host says you don't have a home directory, and askes you if you want to login using the root directory as a home directory, but fails because you can't really use / as a home directory. This begs the questions, do you have an active account on that host? and why do you need to login to it if you just want to mount a shared home directory?
Once you get an account, assuming the host has a properly set up NFS server, you should need only to do
Code:
mount -t nfs //thefileserver/home/useraccount /some/mountpint/of/your/choice
You will probably need to do this as root.

Am I missing something?

--- rod.
 
Old 02-11-2010, 09:29 PM   #3
Deathkarr
LQ Newbie
 
Registered: Nov 2009
Posts: 20

Original Poster
Rep: Reputation: 0
Alright I'm using openldap on the server and I would like the home directories to be mounted from the server. I do have an account which I convert into ldap before trying to log in on the client.
 
Old 02-11-2010, 10:45 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
http://www.linuxhomenetworking.com/ is a good site, but it sounds like you need to read both the NFS http://www.linuxhomenetworking.com/w...ccess_with_NFS AND LDAP http://www.linuxhomenetworking.com/w...DAP_and_RADIUS articles.
have you been through both of them?
 
Old 02-12-2010, 09:22 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
When you say 'login' are you really trying to say 'mount'? A login is a whole different process than mounting a network share.
--- rod.
 
Old 02-15-2010, 01:24 AM   #6
Deathkarr
LQ Newbie
 
Registered: Nov 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I'm using ldap as for user information and nfs for mounting the users home directory upon login. Here's what I did for the server.

1. I edidted the /etc/exports file and added the following lines
/home *(rw,sync)

2. I then typed in the following commands
Code:
[root@homer tmp]# exportfs -a
[root@homer tmp]# chkconfig nfslocik on
[root@homer tmp]# chkconfig nfs on
[root@homer tmp]# chkconfig portmap on
[root@homer tmp]# service portmap start
Starting portmapper: [ OK ]
[root@homer tmp]# service nfslock start
Starting NFS statd: [ OK ]
[root@homer tmp]# service nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
Client Configuration

1. I typed in the following commands
Code:
[root@smallfry tmp]# chkconfig nfslock on
[root@smallfry tmp]# chkconfig netfs on
[root@smallfry tmp]# chkconfig portmap on
[root@smallfry tmp]# service portmap start
Starting portmapper: [ OK ]
[root@smallfry tmp]# service netfs start
Mounting other filesystems: [ OK ]
[root@smallfry tmp]# service nfslock start
Starting NFS statd: [ OK ]
[root@smallfry tmp]# mv /home /home.save
[root@smallfry tmp]# mkdir /home
[root@smallfry tmp]# ll/
(series of dots followed by users)
I then tested to see if I could mount the new home directory
Code:
[root@smallfry tmp]# mount 192.168.0.1:/home /home/
[root@smallfry tmp]# ls/home
(not to sure what ls/home returned)
[root@smallfry tmp]# umount /home
I then edited the autofs file /etc/auto.master
Code:
#/etc/auto.master
/home        /etc/auto.home --timeout 600
Then edited the /etc/auto.home
Code:
#/etc/auto.home
*  -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp \
   192.168.0.1:/home/&
To finish off i used the following commands
Code:
[root@smallfry tmp]# chkconfig autofs on
[root@smallfry tmp]# service autofs restart
Stopping automount: [ OK ]
Starting automount: [ OK ]
My nfs config came from http://www.linuxhomenetworking.com/w...onfiguring_NIS. Would it be better if I continued setting up a nis system. If so how would I go about removing ldap.Is this all corect. Is there a file or so I could provide you guys with that will help you correct the problem. Thanks so much for your help

Last edited by Deathkarr; 02-15-2010 at 01:29 AM.
 
  


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
nfs server on ubuntu doesn't play nice with nfs client on solaris mathiraj Linux - Networking 11 09-15-2009 02:08 PM
Can't connect from slackware nfs client to rhel nfs server llattan Linux - Server 2 04-21-2009 09:49 AM
Windows 2003R2 NFS Server /Linux NFS client khalil_noura Linux - Networking 0 01-14-2009 11:06 AM
NFS error: sometimes unable to find the files at NFS-client machines samengr Linux - Server 0 09-01-2008 11:26 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:29 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