Ned Ludd wrote:
> > > useradd is a C program and my idea is to make it use the chroot()
> > > system call.
> > 
> > Sounds like a simple enough idea. Patches welcome? Might be worth
> > looking at how Gentoo Prefix does it first though.

I talked to upstream on freenode/#shadow and they welcome a patch for
adding --chroot

chroot() needs to happen really early since useradd and friends read
some configuration files to know e.g. which password encryption
method to use.


> FYI. This is GLEP-0027 and it's not handled anywhere properly yet
> afaik.
> 
> http://www.gentoo.org/proj/en/glep/glep-0027.html

I like it, but how to deal with two packages that want the same
username but different settings such as home directory or shell?


//Peter

Reply via email to