[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: password



On Mon, 04 Apr 2022 17:20:01 +0200, Noah Sombrero <fedora@fea.st>
wrote:

>On Mon, 04 Apr 2022 03:10:01 +0200, Charles Curley
><charlescurley@charlescurley.com> wrote:
>
>>On Sun, 03 Apr 2022 19:56:56 -0400
>>Noah Sombrero <fedora@fea.st> wrote:
>>
>>> I understand that debian 11 does not establish a root password during
>>> installation, regardless of what the installer says.  To get a root
>>> password, I need to add
>>> rw init=/bin/bash
>>> to the grub start up script or
>>> ro init=/bin/bash
>>> to end of the kernel line
>>
>>Actually, no, you don't.
>>
>>If you are preseeding, set that up in your preseed file. Something like:
>>
>># Root password, either in clear text
>># d-i passwd/root-password password r00tme
>># d-i passwd/root-password-again password r00tme
>># or encrypted using a crypt(3)  hash.
>>#d-i passwd/root-password-crypted password [crypt(3) hash]
>># d-i passwd/root-password-crypted password $1$0jG8V.wJ$N6Z/DnaCW0TsDCWj0hspi0
>>d-i passwd/root-password-crypted password $6$SMEblah,blah,blahfZRMXT061
>>
>>To generate hashes for the encrypted password option:
>>
>>!!! The installation manual recommends using sha512 or sha256 for stronger encryption, so use:
>>
>>printf "r00tme" | xargs mkpasswd -m sha-512
>>
>>
>>
>>Otherwise, once you have installed, for temporary access to root use
>>sudo -i. Then change the password with passwd.
>
>I guess the next step is to reinstall debian without specifying a root
>password, so I can use sudo to establish one.  After that, perhaps I
>can log in as root.

That does work.  I am on my way now to deal with the display problem.

>>
>>Or, as Greg Wooledge <greg@wooledge.org> suggests, do it manually during
>>installation.
>>> 
>>> Either way I get an error message saying that the ioctl is not
>>> appropriate for the shell.  How can I fix that?
-- 
Noah Sombrero


Reply to: