LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   nfs mount (https://www.linuxquestions.org/questions/fedora-35/nfs-mount-237763/)

darfie 10-01-2004 11:58 PM

nfs mount
 
Greetings,

How do I nfs mount a filesystems exported from FC2. This worked fine in RH 9. Now I get permission denied. It fails whether is solaris or FC2 trying to mount filesystem.

root@workhourse# mount 192.168.1.65:/work /mnt
nfs mount: 192.168.1.65:/work: Permission denied


I have the following filesystem exported:

[root@claycourt-65 root]# exportfs
exportfs: No host name given with /work (ro,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping= identity,anonuid=-2,anongid=-2), suggest *(ro,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping =identity,anonuid=-2,anongid=-2) to avoid warning
exportfs: No host name given with /usr (ro,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping= identity,anonuid=-2,anongid=-2), suggest *(ro,sync,wdelay,hide,nocrossmnt,secure,root_squash,no_all_squash,subtree_check,secure_locks,mapping =identity,anonuid=-2,anongid=-2) to avoid warning
/work <world>
/usr <world>

shubb 10-04-2004 12:31 PM

As the error message says, you need to add a host to the exports. The host specifies which hosts are allowed to mount that export.

Edit the file /etc/exports and add a * to the beginning of each of the exports. That will allow all hosts to connect.

If you want to limit to certain hosts, specify them individually with a <space> between each hostname or IP.


/tftpboot *(rw,no_root_squash)

/usr/local/src server1 server2 10.1.1.5(rw,no_root_squash)

LinuxRam 10-24-2004 03:13 PM

@darfie

Show the output of
#cat /etc/export

#cat /etc/hosts.allow

#cat /etc/hosts.deny

So, that i can try to solve u r query.



-Akshat


All times are GMT -5. The time now is 07:11 AM.