[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Fixed/patch] Re: Problem with default user creation



It appears that this patch has made it into the 10useradd script, revision 35 (version 1.57?), of casper. I've tried both the 1.57 10useradd, and applied this patch to the 1.39 version with no luck. Any suggestions?

Frederic Lehobey <Frederic.Lehobey@free.fr> wrote: Hi,

On Mon, May 15, 2006 at 10:14:27AM -0500, Jason D. Clinton wrote:
> On Mon, 2006-05-15 at 16:03 +0200, Frederic Lehobey wrote:
> > The problem is still there today (Monday).  Any clue?
> > 
> > > Is it working today for someone?
> > 
> > Is anybody currently having success with make-live iso?
> 
> Yes but it is broken and has been for at least two weeks. You can work

> The problem is that
> chroot/usr/share/initramfs-tools/scripts/casper-bottom/10adduser doesn't
> work during the initrd process. It SHOULD be setting the passwords
> there.

> File a bug with the above information or generate a patch and send it to
> the list.

I have attached a patch that solves it for casper-1.39+debian.  I do
not know if it is necessary for upstream but I have added Tollef Fog
Heen (thanks for your work by the way) to let him know (start of the
thread is there:
http://lists.debian-unofficial.org/pipermail/live/2006-May/000189.html).
The cause in Debian is that chroot default path does not include
/usr/sbin (I do not know whether it should be considered a bug in
coreutils or a feature.  I do not know understand either why it
stopped to work.)

Best regards,
Fr???d???ric Lehobey

diff -Naur casper-1.39+debian.orig/casper-bottom/10adduser casper-1.39+debian/casper-bottom/10adduser
--- casper-1.39+debian.orig/casper-bottom/10adduser 2006-05-16 18:18:25.000000000 +0200
+++ casper-1.39+debian/casper-bottom/10adduser 2006-05-16 18:26:20.969491392 +0200
@@ -28,7 +28,9 @@
 set passwd/user-uid 999
 EOF
 
-chroot /root /usr/lib/user-setup/user-setup-apply > /dev/null
+chroot /root /usr/bin/env -i HOME="/root" \
+               TERM="${TERM}" PATH="/usr/sbin:/usr/bin:/sbin:/bin" \
+               /usr/lib/user-setup/user-setup-apply > /dev/null
 
 if [ -f /root/etc/sudoers ]; then
     grep -q '^%admin' /root/etc/sudoers && sed -i -e '/^%admin/s/ALL$/NOPASSWD: ALL/' /root/etc/sudoers || echo '%admin  ALL=(ALL) NOPASSWD: ALL' >> /root/etc/sudoers
_______________________________________________
live mailing list
live@lists.debian-unofficial.org
http://lists.debian-unofficial.org/cgi-bin/mailman/listinfo/live


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.debian-unofficial.org/pipermail/live/attachments/20060601/e0af6534/attachment.html

Reply to: