Re: ownership on nfs-server




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/wiki/index.php/Quick_HOWTO_:_Ch29_:_Remote_Disk_Access_with_NFS

http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch30_:_Configuring_NIS

.



Relevant Pages

  • Errors writing large files via NFS
    ... files larger than a certain size to a NFS server. ... client systems, although the definition of "too large" varies. ... network paths involved, I'm pretty sure we're not seeing a network problem. ...
    (Tru64-UNIX-Managers)
  • Re: Still getting NFS client locking up
    ... > the same NFS lockups. ... > Reading from the server works perfectly all the time. ... > NFS CLIENT: ... in particular, look at traces for any client blocked in NFS, ...
    (freebsd-current)
  • Re: Help me replace some Windows installations
    ... > Possible with untrusted clients in SMB, and trusted clients in NFS. ... >> trust every client that might be connected to this network. ... > Still, user ABC on client, accesses to server with rights of the user ... > which Peter already told you about, or use SMB for Linux to Linux ...
    (comp.os.linux.setup)
  • V210 BGE0@1000FDX
    ... When connecting a server to a Gig interface you need to enable autoneg ... Blocked port after process kill ... NFS oddity ... where hostname is the name of the NFS client which will automount the ...
    (SunManagers)
  • Re: What doesnt lend itself to OO?
    ... >> proxy and instructs the server to constuct the real object. ... rather than client code. ... If 'clock' is instantiated in the server, ... > for the server interface at the OOA level. ...
    (comp.object)