Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I can mount /srv/nfs and i can see the Subfolder P01. However, under P01 there are additional subfolders which i canīt see from the client. What i am doing wrong?
I can mount /srv/nfs and i can see the Subfolder P01. However, under P01 there are additional subfolders which i canīt see from the client. What i am doing wrong?
Is that the only line in your exports? Reason I ask is because if you have more than one export with same fsid, it will cause problems.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hello maggo123 - welcome to LQ.
I find that the following options work well for me when exporting entire directory trees:
Code:
FROM MY /etc/exports FILE:
.....
/dir/subdir xxx.xxx.xxx.0/24(rw,nohide,insecure,no_subtree_check,async)
....
The first string in the options I use is simply the IP address range to which I permit access from nfs clients. The meaning of the other options can be easily looked up, so I'll leave that part to you.
The Arch Linux wiki entry on nfs is an excellent source of information.
Make sure that you check the permissions on the server, as recommended by wpeckham in post #2.
I find that the following options work well for me when exporting entire directory trees:
Code:
FROM MY /etc/exports FILE:
.....
/dir/subdir xxx.xxx.xxx.0/24(rw,nohide,insecure,no_subtree_check,async)
....
The first string in the options I use is simply the IP address range to which I permit access from nfs clients. The meaning of the other options can be easily looked up, so I'll leave that part to you.
The Arch Linux wiki entry on nfs is an excellent source of information.
Make sure that you check the permissions on the server, as recommended by wpeckham in post #2.
No answer to your problem, but I admit the combination of rw and no_root_squash gives me the shivers. This means that every system that
a) can see the share (and thus mount it - you do not restrict it)
b) with a user that can become root or has sudo rights
can modify or delete files ON the share, as they now got superuser rights ON your share.
In my network no_root_squash is only used on read-only exports (so that shares honor the suid and/or sgid bits on executables).
I once had a case where a remote University didn't restrict ITS NFS exports, so that I could mount them even at our location in Delft. Luckily I did mount it read-only so even in error I couldn't mess up their system (the export was meant for their students only).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.