* Pls help on configuring autofs on NFS for home dir
@ 2006-09-26 4:19 Fajar Priyanto
2006-09-26 4:42 ` SOLVED?? " Fajar Priyanto
2006-09-26 4:43 ` Fajar Priyanto
0 siblings, 2 replies; 7+ messages in thread
From: Fajar Priyanto @ 2006-09-26 4:19 UTC (permalink / raw)
To: autofs
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.
But, when I did 'cd nfstest' it mount the directory!
Also as root, if I do 'cd /home/nfstest/nfstest' it mount the directory.
Is that the correct way? I mean why I need to 'cd' thing?
Am I missing something?
Thank you very much,
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
5:39pm up 9:34, 2.6.16.13-4-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 4:19 Pls help on configuring autofs on NFS for home dir Fajar Priyanto
@ 2006-09-26 4:42 ` Fajar Priyanto
2006-09-26 4:43 ` Fajar Priyanto
1 sibling, 0 replies; 7+ messages in thread
From: Fajar Priyanto @ 2006-09-26 4:42 UTC (permalink / raw)
To: autofs
On Tuesday 26 September 2006 11:19, Fajar Priyanto wrote:
> 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.
>
> But, when I did 'cd nfstest' it mount the directory!
> Also as root, if I do 'cd /home/nfstest/nfstest' it mount the directory.
>
> Is that the correct way? I mean why I need to 'cd' thing?
> Am I missing something?
> Thank you very much,
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.
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
11:42am up 2:55, 2.6.16.13-4-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 4:19 Pls help on configuring autofs on NFS for home dir Fajar Priyanto
2006-09-26 4:42 ` SOLVED?? " Fajar Priyanto
@ 2006-09-26 4:43 ` Fajar Priyanto
2006-09-26 12:59 ` Dana Wellen
1 sibling, 1 reply; 7+ messages in thread
From: Fajar Priyanto @ 2006-09-26 4:43 UTC (permalink / raw)
To: autofs
On Tuesday 26 September 2006 11:19, Fajar Priyanto wrote:
> 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.
>
> But, when I did 'cd nfstest' it mount the directory!
> Also as root, if I do 'cd /home/nfstest/nfstest' it mount the directory.
>
> Is that the correct way? I mean why I need to 'cd' thing?
> Am I missing something?
> Thank you very much,
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.
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
11:42am up 2:55, 2.6.16.13-4-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 4:43 ` Fajar Priyanto
@ 2006-09-26 12:59 ` Dana Wellen
2006-09-26 13:47 ` Fajar Priyanto
0 siblings, 1 reply; 7+ messages in thread
From: Dana Wellen @ 2006-09-26 12:59 UTC (permalink / raw)
To: autofs
[-- Attachment #1.1: Type: text/html, Size: 3281 bytes --]
[-- Attachment #1.2: fc8m3d.gif --]
[-- Type: image/gif, Size: 49607 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 12:59 ` Dana Wellen
@ 2006-09-26 13:47 ` Fajar Priyanto
2006-09-26 14:50 ` Dana Wellen
2006-09-26 16:35 ` Ian Kent
0 siblings, 2 replies; 7+ messages in thread
From: Fajar Priyanto @ 2006-09-26 13:47 UTC (permalink / raw)
To: autofs
On Tuesday 26 September 2006 19:59, Dana Wellen wrote:
> Fajar,
> I assume you want your nfstest user to mount their home directory in
> /home. Your autofs files should be:
> auto.master
> /home /etc/auto.home --timeout=60
> auto.home
> * -rw,soft,intr 192.168.1.247:/home/&
Hi Dana,
Thank you very much for replying.
Actually, that was one of the first configurations I tried, but, when I tried
it, autofs couldn't be started with error:
"Cannot start automount.
/home already mounted"
I don't know, maybe it's because I have done some mistakes before. But, I
couldn't restart the machine since it's my running mail server (shame on me
by experimenting on a production server).
I'll setup some boxes at home to try it again.
I'll post the result.
--
Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
http://linux2.arinet.org
8:46pm up 0:17, 2.6.16.13-4-default GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 13:47 ` Fajar Priyanto
@ 2006-09-26 14:50 ` Dana Wellen
2006-09-26 16:35 ` Ian Kent
1 sibling, 0 replies; 7+ messages in thread
From: Dana Wellen @ 2006-09-26 14:50 UTC (permalink / raw)
To: autofs
[-- Attachment #1: Type: text/html, Size: 1632 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: SOLVED?? Pls help on configuring autofs on NFS for home dir
2006-09-26 13:47 ` Fajar Priyanto
2006-09-26 14:50 ` Dana Wellen
@ 2006-09-26 16:35 ` Ian Kent
1 sibling, 0 replies; 7+ messages in thread
From: Ian Kent @ 2006-09-26 16:35 UTC (permalink / raw)
To: Fajar Priyanto; +Cc: autofs
On Tue, 2006-09-26 at 20:47 +0700, Fajar Priyanto wrote:
> On Tuesday 26 September 2006 19:59, Dana Wellen wrote:
> > Fajar,
> > I assume you want your nfstest user to mount their home directory in
> > /home. Your autofs files should be:
> > auto.master
> > /home /etc/auto.home --timeout=60
> > auto.home
> > * -rw,soft,intr 192.168.1.247:/home/&
>
> Hi Dana,
> Thank you very much for replying.
> Actually, that was one of the first configurations I tried, but, when I tried
> it, autofs couldn't be started with error:
> "Cannot start automount.
> /home already mounted"
umount /home
I assume /home is not in use for home directories since you are testing
your setup.
>
> I don't know, maybe it's because I have done some mistakes before. But, I
> couldn't restart the machine since it's my running mail server (shame on me
> by experimenting on a production server).
Depends on the version of autofs.
Ian
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-09-26 16:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 4:19 Pls help on configuring autofs on NFS for home dir Fajar Priyanto
2006-09-26 4:42 ` SOLVED?? " Fajar Priyanto
2006-09-26 4:43 ` Fajar Priyanto
2006-09-26 12:59 ` Dana Wellen
2006-09-26 13:47 ` Fajar Priyanto
2006-09-26 14:50 ` Dana Wellen
2006-09-26 16:35 ` Ian Kent
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.