default /etc/passwd contents

Corinna Vinschen corinna@vinschen.de
Tue Jun 8 13:43:00 GMT 1999


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


More information about the Cygwin-developers mailing list