On March 27, 2015 4:02:06 PM GMT+01:00, Alexis Guilloteau <[email protected]> wrote: >Hi, > >I looked at the cryptpw and mkpasswd function in busybox. >It seems they are encrypting a string of characters but don't actually >chnage the password. >I must take the result of mkpasswd and edit shadow ? If yes can i >simply >write into it : > >username:passwdencrypted > >or do i have to write all of this ? > >username:passwdencrypted:last:may:must:warn:expire:disable:reserved
The latter. See man 5 passwd. Alternatively just see (in your booted image) passwd --help I.e. something like passwd telnet and enter the new passwd for user telnet. HTH, > >2015-03-27 9:34 GMT+01:00 Bernhard Reutner-Fischer ><[email protected]>: > >> On March 26, 2015 11:40:59 AM GMT+01:00, Baruch Siach ><[email protected]> >> wrote: >> >Hi Alexis, >> > >> >On Thu, Mar 26, 2015 at 11:34:48AM +0100, Alexis Guilloteau wrote: >> >> When trying to connect to the telnet daemon a user and password is >> >asked >> >> and it seems only root superuser is accepted. >> >> >> >> My passwd file is like this : >> >> root::0:0:root:/:/bin/sh >> >> telnet:telnet:3:0:telnet:/:/bin/sh >> > >> >The password field must be encrypted; see the passwd(5) man page. >You >> >can use >> >the mkpasswd utility from the whois package to generate one. >> >> We have both cryptpw as well as mkpasswd in busybox, FYI. >> >> Cheers, >> >> _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
