*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
On the BSD machine you need to have your exports entry showing the directory you're allowing access to and with what permissions, etc.
Is the ip address you give permissions correct for your FC machine?
Is 'juno' listed in your hosts file? If not, you might need to use the ip address of the BSD machine instead of it's name.
Is the Fedora server in DNS or the hosts file of the BSD server? If you do a showmount does the bsd server already show the Fedora server as mounted? If neither of these work try changing the address on the fedora box and see if it will mount.
@Phil.d.g: yes I am sure the IP of the Fedora box is correct. I have also tried this in /etc/export to no avail:
Code:
/home/krop 192.168.1.0/255 (rw)
How does one run nfsd, mountd and rpcbind in debug mode? Nothing about that in the man pages.
@bhart50: the Fedora box is in the /etc/hosts file of the BSD server, but I am using just IP numbers right now. Changing the IP number of the Fedora box had no effect. Showmount on the BSD box returns nothing.
I am trying to remember the gotchas from the first time I set up NFS. One was the hosts.allow file. The other was UID/GIDs. With the respect to the latter, I consciously have the same username @ 500:500 on all my systems. Still, I must be missing something else...
mountd and rpcbind can be run in debug mode using the -d flag, this is in the man pages for 6.1 at least.
Weird, the man page seems to be there, but I can't open it:
Code:
$ locate rpcbind
/etc/rc.d/rpcbind
/usr/sbin/rpcbind
/usr/share/man/man3/rpcbind.3.gz
/usr/share/man/man8/rpcbind.8.gz
$ man rcpbind
No manual entry for rcpbind
$ man 3 rcpbind
No entry for rcpbind in section 3 of the manual
$ man 8 rcpbind
No entry for rcpbind in section 8 of the manual
$ man -k rcpbind
rcpbind: nothing appropriate
I stand corrected: the mountd manpage does list the -d option.
Quote:
The one thing that got me when I used nfs was that on FreeBSD you can't use symlinks or relative paths in the export path
I've run into symlink issues with NFS under Linux as well.
Running mountd with the -d flag, it writes error messages to /var/log/messages. This enabled me to see it didn't like the -rw flag I was using in the exports file. Nor did it accept 192.168.1.0/255 for hosts; I have to list a range of IPs like this:
One hiccup yet remains. When I try to export a directory like /usr/local/www, this gets written to /var/log/messages:
Code:
mountd: got line /usr/local/www ariel zeus
mountd: found ep fs=0x32c9b0a5,0xd379d0de
got host ariel
got host zeus
mountd: can't change attributes for /usr/local/www
Anyone know what this error message means? I searched with Google but it didn't turn up any obvious answers.
UPDATE Never mind, solved as well. Multiple directories from same FS in the same line. It's all in the man pages, if you read closely ...
One thing I am having problems with: root permissions. I can edit files in my home directory but when when I try to edit a file owned by root, it is opened read-only.
I have added the -maproot flag to map root to my username, but that doesn't seem to do the trick. Even as root the Linux box (su - or sudo), files are opened read-only on the BSD share.
Could it a group issue? Neither root nor my username is a member of the "wheel" group BSD uses. Or something else?...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.