Drake Wilson <dr...@begriffli.ch> wrote:
> Quoth Don Armstrong <d...@debian.org>, on 2010-05-15 14:40:05 -0700:
>> You don't need to detect UPG setups with 100% reliability; you can
>> just do the following:

>> 1. If there a possibility of this being a UPG setup:
>>    2. If this user's group has the same name and GID as the user's name and 
>> UID:

> Hrmbl.  I have existing Debian systems that use UPG with UIDs and GIDs
> decidedly non-matching.  It only takes one extra addgroup without a
> corresponding adduser in the default configuration to make the IDs go
> out of sync, 
[...]

That matches my personal experience.
argenau:~# addgroup blah
Adding group `blah' (GID 1005) ...
Done.
argenau:~# adduser nongidmatch
Adding user `nongidmatch' ...
Adding new group `nongidmatch' (1006) ...
Adding new user `nongidmatch' (1005) with group `nongidmatch' ...
[...]

Part 2 the heuristic could be changed to "names of group and user
are identical and user is the only member of the group".
cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/p2h4c7-3a3....@argenau.downhill.at.eu.org

Reply via email to