On 9/11/13 8:29 PM, Harry Putnam wrote:
I've mounted a filesystem on a debian linux machine that resides on an
opendiana (solaris x86) machine and is  zfs filesystem.

I've mounted it with sshfs

The linux user is the same alpha uid (reader) as the solaris user and
both belong to the same group (same alpha and same numeric in the case
of group).

When mounted on the linux box by owner 'reader' the files owner
appears as 'messagebus' instead of 'reader' but the group name stays
the same (nfsu) like this:

-rw-r--r-- 1 messagebus nfsu       69 Mar  9  2010 CMD
drwxr-xr-x 1 messagebus nfsu        9 Mar  9  2010 doc
-rw-r--r-- 1 messagebus nfsu      390 Mar 14  2010 elog_flt

Anyone know what that means?

Probably that the numeric UID for user "messagebus" on the Linux side is the same as "reader" on the Solaris box. I think if you use NFS4 the username may be reported the same, but not for other filesystems such as NFS3 and, presumably, sshfs.

What is almost certainly happening is that ls(1) on Linux calls stat() on each file, which returns a numeric uid/gid, and then the Linux box translates this to "messagebug" using it's password file to translate uid->name.

Traditionally for cases like this with NFS (and similar filesystems, but not SMB and generally NFS4) best practice always was to use the same name/uid mappings on all systems.

Hugh.


_______________________________________________
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to