Drieux wrote:
>
> On Sunday, September 1, 2002, at 01:53 , John W. Krahn wrote:
> [..]
> > The only UID that should be above 60000 is the user "nobody" whose UID
> > is 65534.
>
> you know and I know - what would be 'reasonable'
> and what happens....
> [..]
> >
> > while ( my( undef, undef, $uid ) = getpwent ) {
> > $highestuid = $uid if $highestuid < $uid and $uid < $skip;
> > }
> >
> > print 'The next available UID is ', ++$highestuid, "\n";
>
> Stylish and elegant as ever,
> but doesn't using getpwent also leave
> open going all the way out to say NIS/NIS+
> rather than localizing on the host?
According to getpwent(3) on my system it just reads from /etc/passwd.
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]