LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS installed, but no access (https://www.linuxquestions.org/questions/linux-networking-3/nfs-installed-but-no-access-222827/)

elbe3321 08-26-2004 05:11 PM

NFS installed, but no access
 
Hi,

I have two Debian machines on a LAN. One is server. the other client. On the client, after mounting "server:/home" I can see all the directories directly under /home in the server. BUT, I cannot see sub-directories below the first level. I can see a few files, BUT cannot see 99% of the files on the server. I do not know why I cannot access the files on the server.

Where can I start to look for the reason for not being able to access the files and directoriees in /home?

elbe3321

idaho 08-26-2004 10:47 PM

It sounds like you have the permissions set so that the user you are running as on the client does not have access to the directories you have exported.

A couple of things to remember:
1) by default, root on the client machine will not have any root like abilities on the mounted directories. This can be changed by exporting the file system on the server with the no_root_squash option.
2) the users will be identified by their user ids (as assigned in /etc/passwd). Just having a user with the same name on the client will not give you access to files owned by a user with the same name on the server, unless the two users have the same user id. For two systems you can synchronize your user ids manually. For more than a few systems, you generally want to use a central authentication tool such as NIS when you use NFS.

elbe3321 08-27-2004 08:54 AM

Quote:

Originally posted by idaho
It sounds like you have the permissions set so that the user you are running as on the client does not have access to the directories you have exported.
Hi idaho,

Many thanks. That was great advice and it solved my problem. Now I need work on installing NIS and all the security issues that come with it.

elbe


All times are GMT -5. The time now is 04:23 AM.