View Single Post

   
  #2 (permalink)  
Old 02-16-2008, 05:09 AM
Peter Strömberg
 
Posts: n/a
Default Re: Where's the login Password string located

johannes m.r. <psychosos@gmx.at> wrote in
news:367gvvguk0okp67d0q726gi0qilkofq7je@4ax.com:

> I would like to change the default "Password:" string at login. (not
> just the lm= in /etc/gettytab). Unfortunately I do not know where to
> find it - I only found the login: string in the login.c source - but
> not the password string. I guess it is in some library but I couldn't
> find it in any either.
> I'd be glad if someone could offer me a hint - thanks in advance!


/usr/src/usr.bin/passwd/local_passwd.c:
p = getpass("Old password:");
/usr/src/usr.bin/passwd/local_passwd.c:
p = getpass("New password:");
/usr/src/usr.bin/passwd/local_passwd.c:
if (!strcmp(buf, getpass("Retype new password:")))
/usr/src/libexec/login_passwd/login.c:
password = getpass("Password:");
/usr/src/libexec/login_reject/login_reject.c:
getpass("Password:");
/usr/src/libexec/login_radius/raddauth.c:
passwd = getpass("Password:");

--
Peter Strömberg
C2K2 C2K3 ISCCIV02 ISCCIV03
Reply With Quote