Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS

Reply
 
 
tat
Guest
Posts: n/a

 
      08-02-2006, 02:48 PM
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
 
 
 
 
Grant
Guest
Posts: n/a

 
      08-02-2006, 10:05 PM
On 2 Aug 2006 07:48:26 -0700, "tat" <(E-Mail Removed)> 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
 
tat
Guest
Posts: n/a

 
      08-15-2006, 07:13 PM
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" <(E-Mail Removed)> 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
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11