This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: default /etc/passwd contents


Corinna Vinschen wrote:
> [...]
> You can't get gid, because gid is only meaningful, if it's read from
> /etc/passwd. Remember: Outside of domains, no primary group exists.
> You only get name and uid but it should be possible, to use the
> administrators group (gid 544) as primary group in any case.

Umm, I thought about it once more. This may also work with ntsec.
Would you please try it, Egor? 

It then would be better, to insert /bin/sh as shell again in this entry,
because this would be compatible to the standard behaviour.

This also would be a good choice for the default /etc/group entry.
Instead of using the dummy group `Everyone' which doesn't refer
to any meaningful group, I suggest using the `Administrators'
group (gid 544). We would get the groups native name with the call
`LookupAccountSid (NULL, get_admin_sid (), ...)'!

After Egor's test, I would then implement an according change to `grp.cc'.

Regards,
Corinna

-- 
new mail address:
mailto:corinna@vinschen.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]