我为gfix / uid为5555的postfix虚拟邮箱创build了一个虚拟邮件用户,但是现在我创build的每个新用户的启动时间大于5555,是否可以重置自动编号,以便普通用户回到低百吗? 我知道这似乎迂腐,但我强迫症5555应该表示一个“特殊”的用户,非常像65534做匿名NFS用户。
–Update–
确认ssgelm的解决scheme有效。 我更改了/etc/login.defs并将UID_MAX和GID_MAX设置为5000,所有新用户现在都在低500(预期行为)下获得uids / gids。
根据手册页( http://linux.die.net/man/8/useradd ):
UID_MAX (number), UID_MIN (number) Range of user IDs used for the creation of regular users by useradd or newusers.
我很确定,如果你将/etc/login.defs UID_MAX设置为5554,你会得到你正在寻找的行为。