NFS

This is a discussion on NFS within the Linux Networking forums, part of the Linux Forums category; Hi, I have a PC (let its name to be AAA) on which I installed Debian Etch. After boosting, this ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-02-2006
tat
 
Posts: n/a
Default NFS

Hi,

I have a PC (let its name to be AAA) on which I installed Debian Etch.
After boosting, this PC will mount a remote drive (via NFS) on its
/home. Everything went fine.

Here come a weird part. If I am at my desk, I can login AAA without any
problem. However, if I try remote login AAA, I keep getting "Permission
denied, please try again" when I type my password.

AAA is the second one which I setup. The first one is working without
any problem. I compared all exports, hosts, groups files in /etc in two
machines. They are the same.

Can someone tell me what would be a source of this problem? and how to
fix it?

Thanks,
tat

Reply With Quote
  #2 (permalink)  
Old 08-02-2006
Grant
 
Posts: n/a
Default Re: NFS

On 2 Aug 2006 07:48:26 -0700, "tat" <tuantran167@gmail.com> wrote:

>Hi,
>
>I have a PC (let its name to be AAA) on which I installed Debian Etch.
>After boosting, this PC will mount a remote drive (via NFS) on its
>/home. Everything went fine.
>
>Here come a weird part. If I am at my desk, I can login AAA without any
>problem. However, if I try remote login AAA, I keep getting "Permission
>denied, please try again" when I type my password.


I cannot visualise your problem precisely, so I offer a working example:

server example (deltree):

~$ cat /etc/exports
# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.

/home/share 192.168.1.0/24(sync,rw,no_root_squash)
/home/mirror 192.168.1.0/24(sync,ro)
#
/home/share 192.168.2.0/24(sync,rw,no_root_squash)
/home/mirror 192.168.2.0/24(sync,ro)
#
# export NFS mounted /usr for stinkpad laptop:
/home/hal/usr 192.168.1.30/32(sync,rw,no_root_squash)

client example (sempro):

~$ grep nfs /etc/fstab
deltree:/home/share /home/share nfs hard,intr
deltree:/home/mirror /home/mirror nfs noauto,user,hard,intr
peetoo:/home/install /home/install nfs noauto,user,hard,intr
peetoo:/home/public /home/public nfs noauto,user,hard,intr,exec

>AAA is the second one which I setup. The first one is working without
>any problem. I compared all exports, hosts, groups files in /etc in two
>machines. They are the same.


Did you run exportfs after setting up second box? Are they both
running same nfs version, is portmap running both boxen?

You might need to sniff lan (tcpdump, if lan is quiet enough) to see
what's going over the wire.

Grant.
Reply With Quote
  #3 (permalink)  
Old 08-15-2006
tat
 
Posts: n/a
Default Re: NFS

Hi Grant,

Thanks very much for your reply. I got sidetrack until today. I spent
sometimes today to track down the problem. Now it worked. The problem
turned out to be
group permission that was set in sshd_config.

Thanks,
tat



Grant wrote:
> On 2 Aug 2006 07:48:26 -0700, "tat" <tuantran167@gmail.com> wrote:
>
> >Hi,
> >
> >I have a PC (let its name to be AAA) on which I installed Debian Etch.
> >After boosting, this PC will mount a remote drive (via NFS) on its
> >/home. Everything went fine.
> >
> >Here come a weird part. If I am at my desk, I can login AAA without any
> >problem. However, if I try remote login AAA, I keep getting "Permission
> >denied, please try again" when I type my password.

>
> I cannot visualise your problem precisely, so I offer a working example:
>
> server example (deltree):
>
> ~$ cat /etc/exports
> # See exports(5) for a description.
> # This file contains a list of all directories exported to other computers.
> # It is used by rpc.nfsd and rpc.mountd.
>
> /home/share 192.168.1.0/24(sync,rw,no_root_squash)
> /home/mirror 192.168.1.0/24(sync,ro)
> #
> /home/share 192.168.2.0/24(sync,rw,no_root_squash)
> /home/mirror 192.168.2.0/24(sync,ro)
> #
> # export NFS mounted /usr for stinkpad laptop:
> /home/hal/usr 192.168.1.30/32(sync,rw,no_root_squash)
>
> client example (sempro):
>
> ~$ grep nfs /etc/fstab
> deltree:/home/share /home/share nfs hard,intr
> deltree:/home/mirror /home/mirror nfs noauto,user,hard,intr
> peetoo:/home/install /home/install nfs noauto,user,hard,intr
> peetoo:/home/public /home/public nfs noauto,user,hard,intr,exec
>
> >AAA is the second one which I setup. The first one is working without
> >any problem. I compared all exports, hosts, groups files in /etc in two
> >machines. They are the same.

>
> Did you run exportfs after setting up second box? Are they both
> running same nfs version, is portmap running both boxen?
>
> You might need to sniff lan (tcpdump, if lan is quiet enough) to see
> what's going over the wire.
>
> Grant.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0