Bug#646824: /lib/live/config/003-sudo: sudo configuration doesn't recheck for LIVE_USERNAME in /proc/cmdline
Package: live-config
Version: 3.0~a28-1
Severity: important
File: /lib/live/config/003-sudo
Hey,
the sudo configuration inside a live image doesn't re-check for the username
passed to the command line.
in /lib/live/config.sh the default is set to "user". 002-user-setup check
/proc/cmdline for username= and sets LIVE_USERNAME, so it creates correctly
the new account using the named passed on cmdline.
But 003-sudo doesn't do this, so it stays with the default LIVE_USERNAME,
which is user. That means sudo won't work and the rest of the boot doesn't go
well, and especially it's not possible to login.
Just adding the same check in 003-sudo should work, though there might be a
way to set the username in the top config.sh script in Cmdline() somehow..
Regards,
--
Yves-Alexis
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages live-config depends on:
ii live-config-sysvinit [live-config-backend] 3.0~a28-1
Versions of packages live-config recommends:
pn live-config-doc 3.0~a28-1
pn live-tools <none>
pn sudo 1.8.3-1
pn user-setup <none>
Versions of packages live-config suggests:
ii wget 1.13.4-1
-- no debconf information
Reply to: