[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: Connect to telnet with another user
From:       Bernhard Reutner-Fischer <rep.dot.nop () gmail ! com>
Date:       2015-03-27 17:23:49
Message-ID: 3AAF9F1B-C92C-410A-80AE-16C90D6720E4 () gmail ! com
[Download RAW message or body]

On March 27, 2015 4:02:06 PM GMT+01:00, Alexis Guilloteau <guilloteau@gmail.com> 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
><rep.dot.nop@gmail.com>:
>
>> On March 26, 2015 11:40:59 AM GMT+01:00, Baruch Siach
><baruch@tkos.co.il>
>> 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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic