Michelle Knight wrote:
> At home, I've got things like an x-box (yes, the original) and other things 
> that rely on SMB ... I haven't checked whether they work yet; I need to get 
> Ubuntu talking with the shares that I've set up ... but as I actually got a 
> connection to NFS first, I thought I'd at least get around the permissions 
> thing.
>
> So ... that is the question ... how do I mount an NFS share, published on the 
> Open Solaris box, from the Ubuntu box and specify the user (and password if 
> possible) that I want to connect as.  I'm starting to conclude that the 
> permissions configuration file for NFS is it ... which means that I've got to 
> be logged on to the workstation with the same UID as the server ... that'll 
> cramp my style!
>
>   

No, you you don't use your user id to mount a share.

A share has access rights for machines, not users. So your
Ubuntu box will mount the OpenSolaris share for all
users.

The way you then restrict access to content on the server
would be via ACLs. But in practice, you can use chown
and chmod to control access.

With NFSv3, yes, you pretty much present the same UID
from the client to the server.

With NFSv4, you present a name string, i.e., mine might
be tdh at sun.com. But both client and server need to know
how to map this id. With OpenSolaris, you can indeed
set that in /etc/default/nfs. With Ubuntu, I think //etc/idmapd.conf
will do the trick for you.
/

Reply via email to