[RFC] Globally creating a user and a group "root"

Morrison, John John.Morrison@uk.experian.com
Wed Nov 12 12:27:00 GMT 2003


Corinna Vinschen wrote:
> On Wed, Nov 12, 2003 at 10:25:21AM -0000, Morrison, John wrote:
>> Corinna Vinschen wrote:
>>> On Tue, Nov 11, 2003 at 01:22:50PM -0500, Pierre A. Humblet wrote:
>>>> At 05:58 PM 11/11/2003 +0100, you wrote:
>>>>> What about generating a root group with mkgroup -l by default?
>>>>> 
>>>>>  root:S-1-5-32-544:0:
>>>>> 
>>>>> The question is then, should it *also* generate an administrators
>>>>> entry 
>>>>> 
>>>>>  Administrators:S-1-5-32-544:544:
>>>>> 
>>>>> or should it generate the "root" entry *instead* of the
>>>>> administrators entry?
>>>> 
>>>> Obviously I am for maintaining compatibility with existing
>>>> installations (544 must work), some of which still have Everybody
>>>> with gid 0 (using 0 as mapping to S-1-5-32-544 is risky).
>>> 
>>> I think we should do the affected users a favor and remove the
>>> Everyone entry from /etc/passwd and /etc/group when we find one.
>>> This should be done by a script in the base-files or base-passwd
>>> package as a regular job.
>> 
>> Part of /etc/profile? or put it in /etc/profile.d/?
> 
> Eh, no.  I was thinking about a postinstall script, which checks for
> Everyone (S-1-0-0) in /etc/passwd and /etc/group and removes these
> entries silently.  The same script could add the "root" entry to
> /etc/group. 

But then what happens if somebody messes up there /etc/[passwd|group]
and have to create it again?  Does mk[passwd|group] do the changes
automatically?

J.


==========================================================================
Information in this email and any attachments are confidential, and may
not be copied or used by anyone other than the addressee, nor disclosed
to any third party without our permission. There is no intention to
create any legally binding contract or other binding commitment through
the use of this electronic communication unless it is issued in accordance
with the Experian Limited standard terms and conditions of purchase or
other express written agreement between Experian Limited and the recipient
Experian Limited (registration number 653331)
Registered office: Talbot House, Talbot Street, Nottingham NG80 1TH



More information about the Cygwin-apps mailing list