Re: [dev] [ubase] Implementing users and groups management

From: Daniel Cegiełka <daniel.cegielka_AT_gmail.com>
Date: Mon, 26 Nov 2018 17:43:19 +0100

sorry for html...


pon., 26 lis 2018 o 17:40 Daniel Cegiełka <daniel.cegielka_AT_gmail.com>
napisał(a):
>
>
>
> pon., 26 lis 2018 o 17:21 ilmich <ardutu_AT_gmail.com> napisał(a):
>>
>> Il giorno lun 26 nov 2018 alle ore 15:38 Laslo Hunhold <dev_AT_frign.de>
>> ha scritto:
>> > Dear Michele,
>>
>> > I remember we discussed a relatively new concept that is better thought
>> > out, and we even discussed it on IRC a few years back regarding ubase,
>> > but I am not sure if it was OpenBSD's approach (see passwd(5)[1]). It
>> > would be interesting to implement it for Linux in some way, maybe even
>> > including conversion tools or something.
>>
>> for now I've only implemented shadow format for compatibility with
>> other tools of ubase (login and passwd).
>>
>> However, looking the OpenBSD approach I noticed that the public
>> databases exported by pwd_mkdb are Berkley Db.
>> The idea you discussed was in this kind of format!?
>
>
> 1) Note that struct passwd is not compatible with linux libc ABI (pw_class).
> 2) pwd_mkdb: This is used to avoid multiple opening of passwd files. If you
> have thousands of users on the 25-year old server, it is ok. But today, this
> approach does not really make sense.
> 3) Berkley DB: They use the old db (version 1.85) and have it built into the
> libc [1]. For linux users, this would require a separate db installation and this
> is a bad way.
>
> [1] https://cvsweb.openbsd.org/src/lib/libc/db/
>
> Best regards,
> Daniel
>
Received on Mon Nov 26 2018 - 17:43:19 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 26 2018 - 17:48:07 CET