Frizz
2017-Oct-05 08:42 UTC
[Gluster-users] Access from multiple hosts where users have different uid/gid
I have a setup with multiple hosts, each of them are administered separately. So there are no unified uid/gid for the users. When mounting a GlusterFS volume, a file owned by user1 on host1 might become owned by user2 on host2. I was looking into POSIX ACL or bindfs, but that won't help me much. What did other people do with this kind of problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171005/e21ab147/attachment.html>
Jim Kinney
2017-Oct-05 16:53 UTC
[Gluster-users] Access from multiple hosts where users have different uid/gid
Ouch! I use a unified UID/GID process. I personally use FreeIPA. It can also be done with just LDAP or (not recommended for security reasons) NIS+ Baring those, a well-disciplined manual process will work by copying passwd, group, shadow and gshadow files around to all systems. Create new users on a specific machine and then use a home-brewed script to push/sync the files to all other machines. On Thu, Oct 5, 2017 at 4:42 AM, Frizz <frizzthecat at googlemail.com> wrote:> I have a setup with multiple hosts, each of them are administered > separately. So there are no unified uid/gid for the users. > > When mounting a GlusterFS volume, a file owned by user1 on host1 might > become owned by user2 on host2. > > I was looking into POSIX ACL or bindfs, but that won't help me much. > > What did other people do with this kind of problem? > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users >-- -- James P. Kinney III Every time you stop a school, you will have to build a jail. What you gain at one end you lose at the other. It's like feeding a dog on his own tail. It won't fatten the dog. - Speech 11/23/1900 Mark Twain *http://heretothereideas.blogspot.com/ <http://heretothereideas.blogspot.com/>* -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171005/a16f0d5a/attachment.html>
Alastair Neil
2017-Oct-06 13:57 UTC
[Gluster-users] Access from multiple hosts where users have different uid/gid
nfsv4 id mapping is based on username not uid so you could use ganesha nfs to share the files. On 5 October 2017 at 04:42, Frizz <frizzthecat at googlemail.com> wrote:> I have a setup with multiple hosts, each of them are administered > separately. So there are no unified uid/gid for the users. > > When mounting a GlusterFS volume, a file owned by user1 on host1 might > become owned by user2 on host2. > > I was looking into POSIX ACL or bindfs, but that won't help me much. > > What did other people do with this kind of problem? > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20171006/3b3539e9/attachment.html>