Re: Managing users and groups within multiple devel chroots.

2005-09-18 Thread Daniel Jacobowitz
On Thu, Sep 15, 2005 at 06:29:12AM -0500, Peter Samuelson wrote: [Ernestas V.] Perhaps hard/symlinking original /etc/passwd, /etc/shadow and /etc/group to chrooted environments would help? Symlinks won't work. Think about what a chroot environment *is*. Hardlinks will only work if

Re: Managing users and groups within multiple devel chroots.

2005-09-18 Thread Daniel Jacobowitz
On Sun, Sep 18, 2005 at 11:52:09PM -0400, Daniel Jacobowitz wrote: Here's the code, hardcoded paths and all: http://return.false.org/~drow/fuse/shadow-etc.c Slightly better, but not much: http://return.false.org/~drow/fuse/ -- Daniel Jacobowitz CodeSourcery, LLC -- To UNSUBSCRIBE,

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Andrew Pollock
On Wed, Sep 14, 2005 at 02:12:54PM -0700, Rob Browning wrote: Is it possible to configure a set of chroots (woody, sarge, whatever) so that all of the chroot passwd/group DBs will stay in sync with each other and with the host DB automaticall, so that, for example, a useradd, usermod, or

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Ernestas V.
Perhaps hard/symlinking original /etc/passwd, /etc/shadow and /etc/group to chrooted environments would help? Rob Browning wrote: Is it possible to configure a set of chroots (woody, sarge, whatever) so that all of the chroot passwd/group DBs will stay in sync with each other and with the

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Peter Samuelson
[Ernestas V.] Perhaps hard/symlinking original /etc/passwd, /etc/shadow and /etc/group to chrooted environments would help? Symlinks won't work. Think about what a chroot environment *is*. Hardlinks will only work if the programs that edit /etc/passwd and /etc/group overwrite them rather

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Marco d'Itri
On Sep 15, Peter Samuelson [EMAIL PROTECTED] wrote: Bind mounts will work (mount --bind /etc/passwd /mnt/sarge-chroot/etc/passwd) but apparently don't support locking all of a file's representations, What about bind-mounting the /etc/.pwd.lock lock file too? -- ciao, Marco signature.asc

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Richard Atterer
On Wed, Sep 14, 2005 at 02:12:54PM -0700, Rob Browning wrote: Is it possible to configure a set of chroots (woody, sarge, whatever) so that all of the chroot passwd/group DBs will stay in sync with each other and with the host DB automaticall, so that, for example, a useradd, usermod, or

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Rob Browning
Ernestas V. [EMAIL PROTECTED] writes: Perhaps hard/symlinking original /etc/passwd, /etc/shadow and /etc/group to chrooted environments would help? Thanks for the suggestion, but I suspect that locking wouldn't work correctly in such an arrangement. If you could tell the system to use a

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Rob Browning
Richard Atterer [EMAIL PROTECTED] writes: From the adduser/addgroup manpage: If the file /usr/local/sbin/adduser.local exists, it will be executed after the user account has been set up in order to do any local setup. The arguments passed to adduser.local are: username uid gid

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew Pollock [EMAIL PROTECTED] writes: On Wed, Sep 14, 2005 at 02:12:54PM -0700, Rob Browning wrote: Is it possible to configure a set of chroots (woody, sarge, whatever) so that all of the chroot passwd/group DBs will stay in sync with each

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Rob Browning
Roger Leigh [EMAIL PROTECTED] writes: Notice that the /etc/schroot/setup.d/30passwd was used to sync the passwd and related files by copying them into the chroot from the main system. While it's a simple copy in this case, you can easily customise the script to sync the other way on session

Re: Managing users and groups within multiple devel chroots.

2005-09-15 Thread Roger Leigh
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rob Browning [EMAIL PROTECTED] writes: Roger Leigh [EMAIL PROTECTED] writes: Notice that the /etc/schroot/setup.d/30passwd was used to sync the passwd and related files by copying them into the chroot from the main system. While it's a simple

Managing users and groups within multiple devel chroots.

2005-09-14 Thread Rob Browning
Is it possible to configure a set of chroots (woody, sarge, whatever) so that all of the chroot passwd/group DBs will stay in sync with each other and with the host DB automaticall, so that, for example, a useradd, usermod, or userdel, will automatically affect all of the DBs simultaneously and