[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: UID allocation policy [Re: automatic adduser/addgroup ...]



Bruce Perens writes ("Re: UID allocation policy [Re: automatic adduser/addgroup ...]"):
> From: Lukas Nellen <lukas@teorica0.ifisicacu.unam.mx>
> > The only way out I see is to use a different range for dynamically
> > allocated system accounts and fix the software that gets broken by
> > this.
> 
> There's a lot of work to make dynamic system accounts happen. USTAR
> archives (Posix tar) have string-valued user and group information,
> but the tar extractor function in dpkg (I wrote it) would have to be
> modified to use this. Dpkg would have to assure that all needed accounts
> were created before extracting the file. Doubtless there are other
> changes I haven't thought of. However, this is not a bad idea.
> If you want to make it happen, you will probably have to do the work.

I'm postulating two kinds of system accounts: static ones, where the
ids user are the owners of files in .deb files or are compiled into
binaries, and dynamic ones where they are only used by name or in
scripts.

The static ones would be allocated centrally from the range 0-99, or
65000-65533 if many are required by one package or for obscure
packages or if we start to run out.

The dynamic ones would be allocated by adduser from whatever range was
specified in adduser.conf.  This would default to 100-999.

Ian.


Reply to: