Networking Forums

Networking Forums > Computer Networking > Linux Networking > ownership on nfs-server

Reply
Thread Tools Display Modes

ownership on nfs-server

 
 
Richard =?UTF-8?B?TcO8bGxlcg==?=
Guest
Posts: n/a

 
      01-28-2006, 11:07 AM
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 .
 
Reply With Quote
 
 
 
 
Gero Marten
Guest
Posts: n/a

 
      01-28-2006, 12:17 PM
On the server machine create a file called "exports" in /etc with
something like this:

/data 192.168.10.0/255.255.255.0(sync,rw)

Richard Müller schrieb:
> 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

 
Reply With Quote
 
Richard =?UTF-8?B?TcO8bGxlcg==?=
Guest
Posts: n/a

 
      01-28-2006, 03:09 PM
Gero Marten wrote:

> On the server machine create a file called "exports" in /etc with
> something like this:
>
> /data 192.168.10.0/255.255.255.0(sync,rw)


That's existing. As root I can't mount the server's (remote) filesystem: it
gives:
mount: ... failed, reason given by server: Permission denied
By the way, accessing the server via Samba (from my XP-notebook) goes
without problems.
>
> Richard Müller schrieb:
>> 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 .
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      01-28-2006, 06:08 PM
In comp.os.linux.networking Richard M?ller <(E-Mail Removed)>:
> 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


Root isn't granted full access on a nfs share per default for
security reasons.

> 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).


Users *must* have the same UID and GID(s) over all systems to use
NFS probably, this sounds like your problem.

See NFS howto (www.tldp.org) and the docs already on your system:

man -k nfs
man mount

Good luck

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 297: Too many interrupts
 
Reply With Quote
 
d
Guest
Posts: n/a

 
      01-29-2006, 01:38 AM

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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
About to Transferring Ownership of Domain Stephen@mailinator.com Broadband 3 07-13-2007 12:17 PM
Dynamic DNS and ownership leobis Windows Networking 1 10-13-2006 08:57 PM
named ownership problem tom Linux Networking 0 03-22-2006 07:47 AM
virtual hosts, ownership of logs Ohmster Linux Networking 0 08-08-2004 03:33 AM
Ownership of newly created objects? arabub Linux Networking 1 05-21-2004 06:57 AM



1 2 3 4 5 6 7 8 9 10 11