nfs_mount permission denied - NFS

This is a discussion on nfs_mount permission denied - NFS ; Hi, I have 2 (practically) identical computers, sitting side-by-side, both running FreeBSD 4.8-RELEASE-p10. The machine names are curly and larry. From larry, I can nfs_mount curly:/seeds /mnt successfully. From curly, all nfs_mount requests fail with a hang after the Permission ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: nfs_mount permission denied

  1. nfs_mount permission denied

    Hi,
    I have 2 (practically) identical computers, sitting side-by-side, both
    running FreeBSD 4.8-RELEASE-p10.
    The machine names are curly and larry.
    From larry, I can nfs_mount curly:/seeds /mnt successfully.
    From curly, all nfs_mount requests fail with a hang after the Permission
    denied line.

    [root@curly ~]# mount_nfs larry:/disk2 /mnt
    larry:/disk2: Permission denied
    ^C
    [root@curly ~]# tail /var/log/messages
    Oct 6 12:52:56 curly /kernel: ad2: 3079MB
    [6256/16/63] at ata1-master UDMA33
    Oct 6 12:52:56 curly /kernel: acd0: CDROM at ata0-slave
    PIO4
    Oct 6 12:52:56 curly /kernel: Mounting root from ufs:/dev/ad0s1a
    Oct 6 12:53:11 curly login: ROOT LOGIN (root) ON ttyv0
    Oct 6 12:53:19 curly mountd[87]: mount request from 192.168.254.2 for non
    existent path /disk2
    Oct 6 12:53:19 curly mountd[87]: mount request denied from 192.168.254.2
    for /disk2
    Oct 6 13:04:46 curly su: charles to root on /dev/ttyp0
    Oct 6 13:12:56 curly su: charles to root on /dev/ttyp0
    Oct 6 13:13:17 curly mountd[87]: mount request from 192.168.254.2 for non
    existent path /disk2
    Oct 6 13:13:17 curly mountd[87]: mount request denied from 192.168.254.2
    for /disk2

    I've worked on this issue for 2 days, I need some help figuring it out.

    Here are the relevant files from curly:
    [root@curly /home/charles]# cat /etc/rc.conf

    # -- sysinstall generated deltas -- # Mon Sep 22 08:28:22 2003
    # Created: Mon Sep 22 08:28:22 2003
    # Enable network daemons for user convenience.
    # Please make all changes to this file, not to /etc/defaults/rc.conf.
    # This file now contains just the overrides from /etc/defaults/rc.conf.
    defaultrouter="192.168.254.254"
    hostname="curly." # Edited for privacy purposes
    ifconfig_tx0="inet 192.168.254.2 netmask 255.255.255.0"
    kern_securelevel_enable="NO"
    moused_enable="NO"
    moused_type="NO"
    nfs_client_enable="YES"
    nfs_reserved_port_only="YES"
    nfs_server_enable="YES"
    portmap_enable="YES"
    mountd_flags="-r"
    saver="daemon"
    sendmail_enable="NO"
    sshd_enable="YES"
    usbd_enable="NO"
    ntpdate_enable="YES"
    ntpdate_flags="time.nist.gov"
    xntpdate_enable="YES"
    syslogd_enable="YES"
    syslog_flags="-ss"
    clear_tmp_enable="YES"

    [root@curly /home/charles]# cat /etc/exports
    /seeds -alldirs -network 192.168.254.0 -mask 255.255.255.0

    [root@curly /home/charles]# showmount -e
    Exports list on localhost:
    /seeds 192.168.254.0

    [root@curly /home/charles]# sockstat -4
    USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
    charles sshd 204 5 tcp4 192.168.254.2:22 192.168.254.4:4758
    root sshd 202 5 tcp4 192.168.254.2:22 192.168.254.4:4758
    root nmbd 167 6 udp4 *:137 *:*
    root nmbd 167 7 udp4 *:138 *:*
    root nmbd 167 8 udp4 192.168.254.2:137 *:*
    root nmbd 167 9 udp4 192.168.254.2:138 *:*
    root smbd 165 12 tcp4 *:445 *:*
    root smbd 165 13 tcp4 *:139 *:*
    root sendmail 117 4 tcp4 127.0.0.1:25 *:*
    root sshd 114 4 tcp4 *:22 *:*
    root inetd 110 4 tcp4 *:21 *:*
    root inetd 110 5 tcp4 *:110 *:*
    root rpc.stat 96 3 udp4 *:1011 *:*
    root rpc.stat 96 4 tcp4 *:1022 *:*
    root nfsd 90 3 tcp4 *:2049 *:*
    root mountd 87 3 udp4 *:1023 *:*
    root mountd 87 4 tcp4 *:1023 *:*
    daemon portmap 85 3 udp4 *:111 *:*
    daemon portmap 85 4 tcp4 *:111 *:*
    root syslogd 81 5 udp4 *:514 *:*

    And here are the relevant files from larry:
    [root@larry /home/charles]# cat /etc/rc.conf

    # -- sysinstall generated deltas -- # Tue Aug 12 07:29:34 2003
    # Created: Tue Aug 12 07:29:34 2003
    # Enable network daemons for user convenience.
    # Please make all changes to this file, not to /etc/defaults/rc.conf.
    # This file now contains just the overrides from /etc/defaults/rc.conf.
    defaultrouter="192.168.254.254"
    hostname="larry." # Edited for privacy purposes
    ifconfig_tx0="inet 192.168.254.3 netmask 255.255.255.0"
    kern_securelevel_enable="NO"
    linux_enable="NO"
    moused_enable="NO"
    moused_type="NO"
    saver="daemon"
    sendmail_enable="NO"
    sshd_enable="YES"
    usbd_enable="NO"
    ntpdate_enable="YES"
    ntpdate_flags="time.nist.gov"
    xntpd_enable="YES"
    syslogd_enable="YES"
    syslogd_flags="-ss"
    clear_tmp_enable="YES"
    inetd_flags="-wW -a 192.168.254.3"
    nfs_client_enable="YES"
    nfs_reserved_port_only="YES"
    nfs_server_enable="YES"
    portmap_enable="YES"
    mountd_flags="-r"

    [root@larry /home/charles]# cat /etc/exports
    /disk2
    /usr -alldirs -network 192.168.254.0 -mask 255.255.255.0

    [root@larry /home/charles]# showmount -e
    Exports list on localhost:
    /usr 192.168.254.0
    /disk2 Everyone

    [root@larry /home/charles]# sockstat -4
    USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
    charles sshd 232 5 tcp4 192.168.254.3:22 192.168.254.4:4776
    root sshd 230 5 tcp4 192.168.254.3:22 192.168.254.4:4776
    root nmbd 156 6 udp4 *:137 *:*
    root nmbd 156 7 udp4 *:138 *:*
    root nmbd 156 8 udp4 192.168.254.3:137 *:*
    root nmbd 156 9 udp4 192.168.254.3:138 *:*
    root smbd 154 12 tcp4 *:445 *:*
    root smbd 154 13 tcp4 *:139 *:*
    root sendmail 121 4 tcp4 127.0.0.1:25 *:*
    root sshd 118 4 tcp4 *:22 *:*
    root inetd 114 4 tcp4 192.168.254.3:110 *:*
    root rpc.stat 100 3 udp4 *:1011 *:*
    root rpc.stat 100 4 tcp4 *:1022 *:*
    root nfsd 94 3 tcp4 *:2049 *:*
    root mountd 91 3 udp4 *:1023 *:*
    root mountd 91 4 tcp4 *:1023 *:*
    daemon portmap 88 3 udp4 *:111 *:*
    daemon portmap 88 4 tcp4 *:111 *:*
    root ntpd 86 4 udp4 *:123 *:*
    root ntpd 86 5 udp4 192.168.254.3:123 *:*
    root ntpd 86 6 udp4 127.0.0.1:123 *:*




  2. Re: nfs_mount permission denied

    Charles,

    If you are still having problems contact me offline and I will see
    if I can help.

    Patch
    patchshaffer@msn.com

    "Charles Howse" wrote in message news:...
    > Hi,
    > I have 2 (practically) identical computers, sitting side-by-side, both
    > running FreeBSD 4.8-RELEASE-p10.
    > The machine names are curly and larry.
    > From larry, I can nfs_mount curly:/seeds /mnt successfully.
    > From curly, all nfs_mount requests fail with a hang after the Permission
    > denied line.
    >
    > [root@curly ~]# mount_nfs larry:/disk2 /mnt
    > larry:/disk2: Permission denied
    > ^C
    > [root@curly ~]# tail /var/log/messages
    > Oct 6 12:52:56 curly /kernel: ad2: 3079MB
    > [6256/16/63] at ata1-master UDMA33
    > Oct 6 12:52:56 curly /kernel: acd0: CDROM at ata0-slave
    > PIO4
    > Oct 6 12:52:56 curly /kernel: Mounting root from ufs:/dev/ad0s1a
    > Oct 6 12:53:11 curly login: ROOT LOGIN (root) ON ttyv0
    > Oct 6 12:53:19 curly mountd[87]: mount request from 192.168.254.2 for non
    > existent path /disk2
    > Oct 6 12:53:19 curly mountd[87]: mount request denied from 192.168.254.2
    > for /disk2
    > Oct 6 13:04:46 curly su: charles to root on /dev/ttyp0
    > Oct 6 13:12:56 curly su: charles to root on /dev/ttyp0
    > Oct 6 13:13:17 curly mountd[87]: mount request from 192.168.254.2 for non
    > existent path /disk2
    > Oct 6 13:13:17 curly mountd[87]: mount request denied from 192.168.254.2
    > for /disk2
    >
    > I've worked on this issue for 2 days, I need some help figuring it out.
    >
    > Here are the relevant files from curly:
    > [root@curly /home/charles]# cat /etc/rc.conf
    >
    > # -- sysinstall generated deltas -- # Mon Sep 22 08:28:22 2003
    > # Created: Mon Sep 22 08:28:22 2003
    > # Enable network daemons for user convenience.
    > # Please make all changes to this file, not to /etc/defaults/rc.conf.
    > # This file now contains just the overrides from /etc/defaults/rc.conf.
    > defaultrouter="192.168.254.254"
    > hostname="curly." # Edited for privacy purposes
    > ifconfig_tx0="inet 192.168.254.2 netmask 255.255.255.0"
    > kern_securelevel_enable="NO"
    > moused_enable="NO"
    > moused_type="NO"
    > nfs_client_enable="YES"
    > nfs_reserved_port_only="YES"
    > nfs_server_enable="YES"
    > portmap_enable="YES"
    > mountd_flags="-r"
    > saver="daemon"
    > sendmail_enable="NO"
    > sshd_enable="YES"
    > usbd_enable="NO"
    > ntpdate_enable="YES"
    > ntpdate_flags="time.nist.gov"
    > xntpdate_enable="YES"
    > syslogd_enable="YES"
    > syslog_flags="-ss"
    > clear_tmp_enable="YES"
    >
    > [root@curly /home/charles]# cat /etc/exports
    > /seeds -alldirs -network 192.168.254.0 -mask 255.255.255.0
    >
    > [root@curly /home/charles]# showmount -e
    > Exports list on localhost:
    > /seeds 192.168.254.0
    >
    > [root@curly /home/charles]# sockstat -4
    > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
    > charles sshd 204 5 tcp4 192.168.254.2:22 192.168.254.4:4758
    > root sshd 202 5 tcp4 192.168.254.2:22 192.168.254.4:4758
    > root nmbd 167 6 udp4 *:137 *:*
    > root nmbd 167 7 udp4 *:138 *:*
    > root nmbd 167 8 udp4 192.168.254.2:137 *:*
    > root nmbd 167 9 udp4 192.168.254.2:138 *:*
    > root smbd 165 12 tcp4 *:445 *:*
    > root smbd 165 13 tcp4 *:139 *:*
    > root sendmail 117 4 tcp4 127.0.0.1:25 *:*
    > root sshd 114 4 tcp4 *:22 *:*
    > root inetd 110 4 tcp4 *:21 *:*
    > root inetd 110 5 tcp4 *:110 *:*
    > root rpc.stat 96 3 udp4 *:1011 *:*
    > root rpc.stat 96 4 tcp4 *:1022 *:*
    > root nfsd 90 3 tcp4 *:2049 *:*
    > root mountd 87 3 udp4 *:1023 *:*
    > root mountd 87 4 tcp4 *:1023 *:*
    > daemon portmap 85 3 udp4 *:111 *:*
    > daemon portmap 85 4 tcp4 *:111 *:*
    > root syslogd 81 5 udp4 *:514 *:*
    >
    > And here are the relevant files from larry:
    > [root@larry /home/charles]# cat /etc/rc.conf
    >
    > # -- sysinstall generated deltas -- # Tue Aug 12 07:29:34 2003
    > # Created: Tue Aug 12 07:29:34 2003
    > # Enable network daemons for user convenience.
    > # Please make all changes to this file, not to /etc/defaults/rc.conf.
    > # This file now contains just the overrides from /etc/defaults/rc.conf.
    > defaultrouter="192.168.254.254"
    > hostname="larry." # Edited for privacy purposes
    > ifconfig_tx0="inet 192.168.254.3 netmask 255.255.255.0"
    > kern_securelevel_enable="NO"
    > linux_enable="NO"
    > moused_enable="NO"
    > moused_type="NO"
    > saver="daemon"
    > sendmail_enable="NO"
    > sshd_enable="YES"
    > usbd_enable="NO"
    > ntpdate_enable="YES"
    > ntpdate_flags="time.nist.gov"
    > xntpd_enable="YES"
    > syslogd_enable="YES"
    > syslogd_flags="-ss"
    > clear_tmp_enable="YES"
    > inetd_flags="-wW -a 192.168.254.3"
    > nfs_client_enable="YES"
    > nfs_reserved_port_only="YES"
    > nfs_server_enable="YES"
    > portmap_enable="YES"
    > mountd_flags="-r"
    >
    > [root@larry /home/charles]# cat /etc/exports
    > /disk2
    > /usr -alldirs -network 192.168.254.0 -mask 255.255.255.0
    >
    > [root@larry /home/charles]# showmount -e
    > Exports list on localhost:
    > /usr 192.168.254.0
    > /disk2 Everyone
    >
    > [root@larry /home/charles]# sockstat -4
    > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS
    > charles sshd 232 5 tcp4 192.168.254.3:22 192.168.254.4:4776
    > root sshd 230 5 tcp4 192.168.254.3:22 192.168.254.4:4776
    > root nmbd 156 6 udp4 *:137 *:*
    > root nmbd 156 7 udp4 *:138 *:*
    > root nmbd 156 8 udp4 192.168.254.3:137 *:*
    > root nmbd 156 9 udp4 192.168.254.3:138 *:*
    > root smbd 154 12 tcp4 *:445 *:*
    > root smbd 154 13 tcp4 *:139 *:*
    > root sendmail 121 4 tcp4 127.0.0.1:25 *:*
    > root sshd 118 4 tcp4 *:22 *:*
    > root inetd 114 4 tcp4 192.168.254.3:110 *:*
    > root rpc.stat 100 3 udp4 *:1011 *:*
    > root rpc.stat 100 4 tcp4 *:1022 *:*
    > root nfsd 94 3 tcp4 *:2049 *:*
    > root mountd 91 3 udp4 *:1023 *:*
    > root mountd 91 4 tcp4 *:1023 *:*
    > daemon portmap 88 3 udp4 *:111 *:*
    > daemon portmap 88 4 tcp4 *:111 *:*
    > root ntpd 86 4 udp4 *:123 *:*
    > root ntpd 86 5 udp4 192.168.254.3:123 *:*
    > root ntpd 86 6 udp4 127.0.0.1:123 *:*


+ Reply to Thread