Patch: Solaris packages don't create privsep user or group
Thomas Binder
binder at arago.de
Tue Jul 23 00:56:51 EST 2002
Hi!
On Tue, Jul 16, 2002 at 10:50:30AM +1000, Darren Tucker wrote:
> OK I can confirm that it does NOT work with Jumpstart. useradd
> and groupadd try to modify the read-only files on the jumpstart
> NFS image.
>
> Should we:
> (a) move them to the /etc/init.d/openssh script same as the keygens
> (b) attempt to hand-hack $PKG_INSTALL_ROOT/etc/passwd
> (c) chroot tricks?
> (d) ?
(c) /usr/sbin/chroot "$PKG_INSTALL_ROOT" "$PKG_INSTALL_ROOT/usr/sbin/useradd" [...]
seems to work flawlessly. Of course, this assumes that useradd is
already installed in the target environment, but as useradd's part
of SUNWcsu, it's quite unlikely it isn't.
One could also think about
(d) use sed/awk class (un)install scripts for /etc/passwd and
/etc/group
This is similar to (b), but IMO a "cleaner" approach.
Ciao
Thomas
More information about the openssh-unix-dev
mailing list