Kenton Brede wrote:
> I've written the following subroutine to snag the next available UID
> in the 700 range from /etc/passwd.  I then use the return value with
> "useradd" to add a new user.

Note that this algorithm contains a race condition. Between the scan of
/etc/passwd and the call to useradd, that user id may be allocated.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to