On Fri, 2007-06-15 at 09:38 +0200, Axel Thimm wrote:
Like Bill wrote, have useradd -r bail out if the uid is outside the
range.
But the range is fixed, 0-99 for static ids, 100-499 for dynamic ones,
500-... for users. If you touch this (e.g. extend to 1000) you break a
lot of stuff like user homes.
I'm not opposed to this. Now, someone needs to figure out how.
I vote for Ville's draft with a plea to the useradd maintainer to
make
useradd -r fail if the result is that the uid/gid is not in the system
range. And also have the %pre script miseably fail to wake up the
sysadmin ("Hugh, we have a user called Gopher?").
The last part is not going to work. %pre can never fail, it will break a
transaction in unfortunate ways. Useradd can fail, but we need to
silently mask it. Output from %pre is not useful in a kickstart
transaction.
~spot