Mail Archives: djgpp-workers/2001/01/21/09:05:27
Hello.
Eli Zaretskii wrote:
>
> On Sun, 21 Jan 2001, Tim Van Holder wrote:
> > Wasn't sure what to use for a value though; would apps expect
> > crypt()'ed values or plaintext?
>
> Could people who can access Unix and GNU/Linux boxes please look what
> they do?
The password seems to be crypted. For the group password I get 'x', which
is what /etc/group contains for my user. This appears to be equivalent tp
a blank password field. This is on RedHat Linux 6.2 with glibc 2.1.3.
I don't have any groups with passwords. Perhaps someone who does can use
my test program? Here's my test program:
---start getpwnam() test program---
#include <stdio.h>
#include <stdlib.h>
#include <pwd.h>
#include <grp.h>
#include <sys/types.h>
int
main (void)
{
struct passwd *my_pwd = getpwnam("rich");
struct group *my_grp = getgrnam("rich");
if ((my_pwd == NULL) || (my_grp == NULL))
return(EXIT_FAILURE);
printf("User %s's password is %s\n", my_pwd->pw_name,
my_pwd->pw_passwd);
printf("Group %s's password is %s\n", my_grp->gr_name,
my_grp->gr_passwd);
return(EXIT_SUCCESS);
}
---end getpwnam() test program---
> > And what would be a good value? Maybe we could select one randomly
> > from "secret", "password" and "god" :-)
> > I'm open to suggestions...
>
> I suggest to start a contest for the best password.
How about "open-sesame"?
Bye, Rich =]
--
Richard Dawe <richdawe AT bigfoot DOT com> http://www.bigfoot.com/~richdawe/
"The soul is the mirror of an indestructible universe."
--- Gottfried W. Leibniz
- Raw text -