[sclug] Linux to linux file sharing

Drew McLellan lists at allinthehead.com
Sun Feb 13 21:34:11 UTC 2005


James Fidell wrote:
> Quoting Drew McLellan (lists at allinthehead.com):
> 
>>Unfortunately, the way NFS handles permissions leaves a lot to be 
>>desired. Basically it would seem ignore groups and file ownership, and 
>>rely totally on file permissions. I'm not really keen on making all the 
>>files world writable.
> 
> 
> I'm not sure the above paragraph actually makes sense, but it looks like
> you're doing it wrong.  NFS fully implements user/group/world file
> access rights, modulo any modification made via mount/export options.
> 
> I suggest you post examples of your configuration and explain what doesn't
> work.

(Sorry, went away for the weekend)

On the server I have an export which looks like this:

/home/files      (insecure,rw)

Obviously I've not got as far as nailing this down to a specific IP 
address or range yet. Keeping it simple for troubleshooting.

Everything under /home/files belongs to the group 'company' (1001) and 
is owned by my user (1000).

On the workstation, I have a user with the same name and id (1000), 
ditto with the group. I can successfully mount the export:

mount server:/home/files /mnt/files

I can read the files in the export, but not modify. I believe it 
*should* work because:

a) the user has the same ID on the client and the server
b) if I ssh into the server as that user, I can modify

But obviously I'm missing a trick.

Thanks for any help you can offer on this.


drew.


More information about the Sclug mailing list