preseed doesn't setup user in /etc/sudoers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
shadow (Ubuntu) |
Invalid
|
Medium
|
Colin Watson |
Bug Description
Using these lines, only root is in /etc/sudoers. I ran debconf-
(--installer) on a box that was done with no preseed (the user was added) and
didn't anything relevent.
###### Account setup.
# To preseed the root password, you have to put it in the clear in this
# file. That is not a very good idea, use caution!
passwd passwd/
passwd passwd/
# If you want to skip creation of a normal user account.
#passwd passwd/make-user boolean false
# Alternatively, you can preseed the user's name and login.
passwd passwd/
passwd passwd/username string juser
# And their password, but use caution!
passwd passwd/
passwd passwd/
This is intentional; you only get the initial user in /etc/sudoers if you don't
set the root password. If you want this behaviour even when you've set a root
password, use one of the various means provided of executing post-installation
scripts.