[Freeipa-devel] [PATCH] 256 allow uid/gid starting number to be set

David O'Brien davido at redhat.com
Thu Aug 27 22:29:20 UTC 2009


Rob Crittenden wrote:
> Rob Crittenden wrote:
>> Martin Nagy wrote:
>>> On Wed, 2009-08-26 at 11:20 -0400, Rob Crittenden wrote:
>>>> Ok, I think I've addressed all the issues raised. I've included 
>>>> Martin's cleaner lambda-based evaluator and the default uid/gid is 
>>>> now a random value between 1,000,000 and (2^31 - 1,000,000).
>>>>
>>>> rob
>>>
>>>> +    parser.add_option("--uidstart", dest="uidstart", 
>>>> default=namespace, type=int,
>>>> +                      help="The starting uid value (default 
>>>> %default)")
>>>> +    parser.add_option("--gidstart", dest="gidstart", 
>>>> default=namespace, type=int,
>>>> +                      help="The starting gid value (default 
>>>> %default)")
>>>
>>> Please make the help message something like "(default random)" instead
>>> of "(default %default)". This can be misleading because the number is
>>> different on each invocation.
>>>
>>
>> Ah, good point. The next time you run it you'll get a different 
>> number, and here I thought I was being so clever :-(
>>
>>> The manpage still says that the default is 1000.
>>>
>>> Conditional Ack if these remaining issues are addressed.
>>>
>>> Martin
>>>
>>
>> Ok, I'll get these fixed up and push it later today.
>>
>> rob
>
> Issues resolved, pushed to master.
>
> David, the default value for uidnumber and gidnumber is now a random 
> value between 1,000,000 and (2^31 - 1,000,000).
>
> rob
Thanks. It's been updated in the BZ (519418)

David

-- 
David O'Brien
IPA Content Author
Red Hat Asia Pacific
+61 7 3514 8189

http://freeipa.org/page/DocumentationPortal
http://git.fedorahosted.org/git/ipadocs.git

"He who asks is a fool for five minutes, but he who does not ask remains a fool forever."
  ~ Chinese proverb




More information about the Freeipa-devel mailing list