LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   autofs (https://www.linuxquestions.org/questions/linux-newbie-8/autofs-800238/)

yuanjunliang 04-05-2010 10:48 PM

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

grail 04-06-2010 12:00 AM

Was there a question here?

TB0ne 04-06-2010 09:13 AM

Quote:

Originally Posted by yuanjunliang (Post 3925648)
# 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.

yuanjunliang 04-06-2010 06:31 PM

Quote:

Originally Posted by TB0ne (Post 3926198)
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!

grail 04-06-2010 09:11 PM

Please mark as SOLVED if you have your solution.


All times are GMT -5. The time now is 09:03 PM.