:: Re: [DNG] SystemD OS home directori…
Top Page
Delete this message
Reply to this message
Author: g4sra
Date:  
To: dng@lists.dyne.org
Subject: Re: [DNG] SystemD OS home directories
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, February 24, 2021 10:48 PM, Ralph Ronnquist via Dng <dng@???> wrote:

> On 24/02 17:04, Hendrik Boom wrote:
>
> > On Wed, Feb 24, 2021 at 09:13:07PM +0000, g4sra via Dng wrote:
> >
> > > Just pulled this kernel commit...
> > > commit 7d6beb71da3cc033649d641e1e608713b8220290
> > > Merge: aa8e3291729f f69e8091c4a2
> > > Author: Linus Torvalds torvalds@???
> > > Date: Tue Feb 23 13:39:45 2021 -0800
> > > <snip>
> > >
> > >        - Idmapped mounts make it possible to easily share files between
> > >          multiple users or multiple machines especially in complex
> > >          scenarios. For example, idmapped mounts will be used in the
> > >          implementation of portable home directories in
> > >          systemd-homed.service(8) where they allow users to move their                home
> > >          directory to an external storage device and use it on multiple
> > >          computers where they are assigned different uids and gids. This
> > >          effectively makes it possible to assign random uids and gids at
> > >          login time.

> > >
> > >
> > > <snip>
> > > I remember the question regarding implementation of migratory home directories raising it's head in the past. We now have the answer.
> >
> > Let me hopw NFS will use that technique.
> > It squashes root. I'd like it to reassign UIDs too.
>
> Wasn't "idmapping" invented with and for NFS, a couple of decades ago?


Yes, in NFS userspace I think.

Now it is in the kernel, it can be leveraged by any mount of any filesystem. Or even the same filesystem mounted in two different places giving two different access controls to the single filesystem simultaneously.