LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2010, 11:48 PM   #1
yuanjunliang
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
autofs


# cat /etc/auto.master
/misc /etc/auto.misc
/net -hosts
/home/guests /etc/auto.home
+auto.mater

#cat /etc/auto.home
* -rw,soft,intr nfsserver:/home/guests/&

setup ldap, loging as ldapuser1, but the /home/guests/ldapuser1 not created.
error: /usr/bin/xauth : error in locking authority file /home/guests/ldapuser1/.Xauthority

#mount -t nfs nfsserver:/home/guests /mnt
successfully mounted
 
Old 04-06-2010, 01:00 AM   #2
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Was there a question here?
 
Old 04-06-2010, 10:13 AM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,954

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by yuanjunliang View Post
# cat /etc/auto.master
/misc /etc/auto.misc
/net -hosts
/home/guests /etc/auto.home
+auto.mater

#cat /etc/auto.home
* -rw,soft,intr nfsserver:/home/guests/&

setup ldap, loging as ldapuser1, but the /home/guests/ldapuser1 not created.
error: /usr/bin/xauth : error in locking authority file /home/guests/ldapuser1/.Xauthority

#mount -t nfs nfsserver:/home/guests /mnt
successfully mounted
So...we're supposed to guess as to what your question is, version/distro of Linux, what you're trying to do, etc??? Sorry, we've all got better things to do. But it looks like your NFS mount worked, so what's the problem??

And if the 'red' error line is supposed to give us a clue...it should give you one too. Look up how Linux locks files, and what that particular file is used for, and when it would be open.
 
Old 04-06-2010, 07:31 PM   #4
yuanjunliang
LQ Newbie
 
Registered: Apr 2009
Posts: 22

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by TB0ne View Post
So...we're supposed to guess as to what your question is, version/distro of Linux, what you're trying to do, etc??? Sorry, we've all got better things to do. But it looks like your NFS mount worked, so what's the problem??

And if the 'red' error line is supposed to give us a clue...it should give you one too. Look up how Linux locks files, and what that particular file is used for, and when it would be open.
actually, the /usr/bin/xauth didn't cause the problem. it was the file context. The /home/guests context type was "user_home_dir_t", changed to "home_root_t". It works.
Thanks any way!
 
Old 04-06-2010, 10:11 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,255

Rep: Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686Reputation: 2686
Please mark as SOLVED if you have your solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
autofs under / Micro420 Red Hat 9 03-04-2010 05:00 PM
autofs sl4ckw4re Slackware 1 09-18-2006 01:51 PM
autofs kemkem42 Linux - Software 1 09-22-2005 02:22 PM
autofs fitteschleiker Slackware 2 06-28-2005 05:17 PM
Using Autofs guygriffiths Linux - Software 1 09-17-2003 11:31 AM


All times are GMT -5. The time now is 09: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration