Auto Mount Home Directory with Autofs

Latest response

Hello

I am having trouble getting Autofs to work. I am currently studying for the big test and have been really struggling to get autofs to work for mounting home directories.

I share it from the server and configure the /etc/auto.master.d/auto.home file, but it doesn't seem to work.

Also if I create user with no home directory as the book says I should it doesn't let them log in.

I can switch to user from admin prompt and it goes to a shell. From that point as I said I can see it mounted, but when I do the pwd it shows up as /hom/admin instead of /home/user30 which is user I am doing.

Server ip 192.168.0.241
Client ip 192.168.0.242

On server I have configured exports file:
/home 192.168.0.242:(rw)

On client I have configured /etc/auto.master file:
/nfshome /etc/auto.master.d/auto.home

Then I configure auto.home from above:
* -rw 192.168.0.241:/home/user30

What am I doing wrong here?

Responses