LinuxQuestions.org
Visit Jeremy's Blog.
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 12-26-2004, 11:11 PM   #1
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
automounting in /home directory doesn't work


Hi all,

I want to let all users on my network use their home directory on the file server.

That is, user bar should use server:/home/bar as his home directory, rather than the local /home/bar.

I have chosen to use autofs to accomplish this.

The auto.master file looks like this:
/home /etc/auto.home

The auto.home file looks like this:
* -defaults,nosuid server:/home/&

Well, despite of the thousands of web pages describing this process as the way how to do it, it does NOT work.

When I change the auto.master to:
/foo /etc/auto.home

everything works fine, and the directories foo/bar and foo/baz etc. appear nicely.

In the case that I use /home as a mount point, no automount daemons start, and this is shown with the autofs status command.

Because it works fine in /foo and not in /home as the mount point, I came to the conclusion that it has something to do with choosing /home as mount point.

Since I can get it working in /foo, I am sure that the problem is NOT in:
- exporting the directories on the server
- setting up autofs, or auto.master or auto.home files
- nfs

When I mount the directory server:/home/bar manually on the mount point /home there is no problem, it is just that automount refuses to do this.

I could of course work around this problem to define a user's home directory as /foo/bar in the passwd file, but I don't think that is an elegant solution.

Any ideas someone?

jlinkels
 
Old 12-27-2004, 11:12 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Original Poster
Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
Problem solved!

I found what caused the problem!

The /home directory was mounted from a different partition (/dev/hda5), and not simply a subdirectory under '/'

After removing the mount of /home from /etc/fstab I was able to use the automounter as described.

jlinkels
 
Old 03-18-2005, 12:45 PM   #3
ghee22
LQ Newbie
 
Registered: Nov 2004
Posts: 16

Rep: Reputation: 0
can you please post your auto.master and auto.home because i'm having the same EXACT problem! i would VERY much appreciate it
 
Old 03-18-2005, 06:12 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,191

Original Poster
Rep: Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039Reputation: 1039
It's in my first post. Read it.

jlinkels
 
  


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
Apache Root/Home Directory and setting up FTP for home directories? Mankind75 Linux - Newbie 6 07-23-2006 03:37 PM
Automounting Windows Directory DNAphil Linux - Networking 3 09-17-2005 11:17 AM
Running jsps in user home directory doesn't work (Apache Tomcat and mod_userdir) jimieee Linux - Networking 0 03-23-2005 11:12 AM
samba wont work in my home directory jbzy3000 Fedora 2 03-05-2005 06:50 PM
My Home directory shortcut folder on my desktop doesn't work Bensoft Kill MS Linux - Software 2 11-28-2003 10:31 PM

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

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