delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/21/09:05:27

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3A6AEC96.4F46DBF5@phekda.freeserve.co.uk>
Date: Sun, 21 Jan 2001 14:05:10 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.17 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: Status update (Smalltalk/Python)
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1010121151028 DOT 16311H-100000 AT is>
Reply-To: djgpp-workers AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019