This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Testers needed: New passwd/group handling in Cygwin
- From: Kurt Franke <Kurt-Franke at web dot de>
- To: cygwin at cygwin dot com
- Date: Fri, 14 Feb 2014 12:55:58 +0000 (UTC)
- Subject: Re: Testers needed: New passwd/group handling in Cygwin
- Authentication-results: sourceware.org; auth=none
- References: <52FD1EDB dot 8060708 at googlemail dot com> <52FD3D9C dot 6020205 at tiscali dot co dot uk> <52FDE9C0 dot 7070002 at gmail dot com> <20140214101001 dot GW2246 at calimero dot vinschen dot de> <20140214105038 dot GA2246 at calimero dot vinschen dot de>
Corinna Vinschen <corinna-cygwin <at> cygwin.com> writes:
> > Indeed. After the discussion yesterday I already realized that we will
> > need some commandline tool to request passwd and group entries.
> >
> > There is a function called getpw on Linux which allows to fetch a passwd
> > entry in the form it has in /etc/passwd:
> >
> > http://linux.die.net/man/3/getpw
>
> Gosh, please ignore this function. It's old and dangerous. Treat this
> mail as if I never mentioned this function, ok?
>
> Corinna
>
Hi Corinna,
I think the function family
getpwent()
getgrent()
...
would be good for this if you add checking in SAM for asked information.
And of course to small executables utilizing it for use in shell scripts
Regards
kf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple