Hi all, I'm trying to setup this scenario on NFS and autofs on Centos 4.3: - useradd nfstest on an NFS server (192.168.1.247) - Setting up this NFS server /etc/exports: /home/nfstest 192.168.1.252/255.255.255.0(rw,sync,no_root_squash)
- useradd nfstest on a client machine (192.168.1.252) - make sure that the uid and gid are the same on the server and the client - setting up /etc/auto.master: /home/nfstest /etc/auto.nfs --timeout=60 - setting up /etc/auto.nfs: * -rw,soft,intr 192.168.1.247:/home/&
- Restarting portmap, nfs, nfslock on the server - Restarting autofs on the client
- showmount -e localhost: /home/nfstest 192.168.1.252/255.255.255.0
- Try to logon using username on the client: nfstest
But I've got this error:
automount[5937]: >> mount: 192.168.1.247:/home/.bash_profile failed, reason given by server: Permission denied automount[5937]: mount(nfs): nfs: mount failure 192.168.1.247:/home/.bash_profile on /home/nfstest/.bash_profile automount[5937]: failed to mount /home/nfstest/.bash_profile automount[5939]: >> mount: 192.168.1.247:/home/.bash_login failed, reason given by server: Permission denied automount[5939]: mount(nfs): nfs: mount failure 192.168.1.247:/home/.bash_login on /home/nfstest/.bash_login automount[5939]: failed to mount /home/nfstest/.bash_login automount[5941]: >> mount: 192.168.1.247:/home/.profile failed, reason given by server: Permission denied
And on the login screen shows only this: -bash-3.00$
Oh by the way, firewall is off.
Am I missing something? Thank you very much,
On Monday 25 September 2006 17:53, Fajar Priyanto wrote:
Very strange. If I do this to mount, it works: cd /home/nfstest/nfstest
Is it the intended steps?
I'm not sure because, when I tried to logon as nfstest, it first fails, then it works when I do 'cd nfstest'
Can anyone comment on this? Thank you very much.
On Mon, Sep 25, 2006 at 06:45:19PM +0700, Fajar Priyanto wrote:
That's because you've got this in auto.master:
/home/nfstest /etc/auto.nfs --timeout=60
That means that /home/nfstest is the automount root _under_ which you are going to automount your directories.
Your probably actually want:
/home /etc/auto.nfs --timeout=60
Cheers, Gavin
On Monday 25 September 2006 18:57, Gavin Carr wrote:
Hi Gavin, When I try that, it errors with: Sep 25 19:14:01 server-mail3 automount[14917]: mount_autofs: already mounted Sep 25 19:14:01 server-mail3 automount[14917]: /home: mount failed! Sep 25 19:14:01 server-mail3 autofs: automount startup failed
On Monday 25 September 2006 19:43, Kay Diederichs wrote:
After a second thought... I modify this: /etc/exports: /home 192.168.1.252/255.255.255.0(rw,sync,no_root_squash)
/etc/auto.master: /mnt /etc/auto.nfs --timeout=60 -fstype=nfs
/etc/auto.nfs: * -rw,soft,intr 192.168.1.247:/home/&
And finally, I also modify the home directory of user: nfstest in /etc/passwd file from /home/nfstest to /mnt/nfstest
Try logon as nfstest, and... voila!! It works!! Is this the correct way? Especially do I need to modify the home directory of the user in /etc/passwd?
Thank you very much.