Richard Müller wrote:
> Hi all,
> I have an NFS-server and want to use it as backup storage. Unfortunately I
> cannot access it from my other computer, configured as an nfs-client. As
> root (on the client) I can see the NFS-server's files (the server's
> filesystem is mounted to a directory on the client), but I can not write
> to them. And as user on the client I can not even read the files. I have
> the same user names (and IDs) on the NFS-server and the client. How can I
> tell the server, that the client's users have write permissions on their
> directories on the server? (Actually, I have two users on the server, who
> should have their own directories).
>
> I don't know if the following is related to the named problem, but I think
> so: I want to remote administrate the server from the client via krdc. But
> there cames no connection... (the network connection works, as I can see
> the remote filesystem, as mentioned above).
> I'd appreciate every hint!
> Thanks a lot, Richard
> --
> R. Müller r.mueller-at-walram-punkt-org
> Replace -at- with @ and -punkt- with a .
Since root can't write to NFS mounted file systems you need to have
your accounts on the NFS server available to the NFS client. I did
this through NIS (yp). Your NFS server is also the NIS server.
Whatever accounts you have on the server can also logon to the client
getting its authenication information from the server. Then if you
export a directory called /export/backup which has permissions 775 and
owned by root:users an all your accounts are in group users. When you
logon to the client as a users that account will be able to write to
the remote mounted file system from the server. Oh, you have to mount
server:/export/backup to some directory on the client as root. You
might want to look into the auto mounting features.
Here are some great references to NFS and NIS and very easy to follow
with good examples.
http://www.linuxhomenetworking.com/w...ccess_with_NFS
http://www.linuxhomenetworking.com/w...onfiguring_NIS