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

Templates for handling UID-related questions in user-setup



user-setup embarks a small piece of code (some would say "hack") added
by Colin for some Ubuntu needs: it introduces a passwd/user-uid value
which can be preseeded with the value one wants for the newly created
regular user.

If this value is empty, as it is most of the time, the user is created
with the default value by adduser, ie 1000.

As discussed with Frans, keeping this as a preseedable-only value is
kind of a "secret" feature in d-i. So, even if it does not appear
vital (Colin and maybe Joey do not seem deeply fond of this), we can
imagine adding some code around this to turn it into a question during
the install.

Of course, this will be a low priority question as the default
(nothing) is a safe default.

The code won't be that hard to write and I'll certainly be able to
write it (then, as usual, Colin, Joey or Frans will clean my code...).

This is likely to introduce 3 new templates:

-the question itself
-an error template if a non numerical value has been entered
-a boolean template when a value outside the recommended 1000-29999
range has been entered

Before adding these, I'd like a small review. So, below is what I
propose. Please comment or correct...

Template: passwd/user-uid
Type: string
Description: User identifier for the new user:
 Each user of the system must be associated with a unique numerical
 user identifier (UID).
 .
 Please enter the UID for the new user, in the 1000-29999 range.
 If you leave this field empty, the system will choose one
 automatically.

Template: passwd/uid-notnumber
Type: error
Description: Incorrect UID value
 You entered a non numerical value for the new user identifier (UID).
 .
 Please enter an integer value as user identifier.

Template: passwd/uid-outofrange
Type: boolean
Description: Really use a UID out of the recommended range?
 The entered value for the user identifier (UID) is out of the recommended
 range (1000-29999).
 .
 If you choose this option, the system will try using this value
 anyway.




Reply to: