uid greater than...

Jorge Almeida jalmeida
Sat Dec 30 05:36:20 PST 2006


When creating a new user, is there some way to force the uid to be
greater than some value? I know I can do "useradd -u 10030 ...", for
example, but that's not what I mean. The man page for useradd says that
by default (i.e., without using the -u flag) the new user uid will be
the smallest value greater than 999 and greater than every other
existing user's uid. I want this behaviour with 10000 instead of 999
(for some users, not for all of them).
Is there some way do do it at all (short of cooking a wrapper that would
check the uid of existing users)?

-- 
Jorge Almeida



More information about the Linux-users mailing list