es fr ru gl fr it gl nb gl gl gl gl als gl gl en gl en gl en id pt gl en gl pl gl en gl en gl pl gl gl en en gl en gl gl gl en en gl en es en en en en en en en en en en en gl it en it en en en en en gl en en en en hu en es gl it en it en en en uk gl en en gl it en it en gl en
How I can generate random passwords for root
Por favor lea e siga as Regras da Comunidade.
Inicie sesión ou rexístrese para enviar comentarios
2 respostas [Última entrada]
Lun, 09/27/2021 - 13:10
Somebody can help me ? I need generate random passwords for "root"
everytime I login. Or "cron job". Please tell me, how I can start this
process ? Below is example, but when I used command "passwd root $pass",
this not work. I can manually, but automatic not work. This script
I was execute as root of course.
pass=$(dd if=/dev/urandom bs=1 count=16 2>/dev/null | base64 -w 0 | rev | cut -b 2- | rev )
[ Sorry for my english, I don't speak in this language ]
Please use the rating system to mark posts that go against the Community Guidelines
Mar, 09/28/2021 - 02:56
I am a member!
I need generate random passwords for "root" everytime I login.
Here is a weird need. Can you explain why please? If the generated password is written on the disk, readable by you, then an attacker would only need to exploit a vulnerability giving her your permissions (exploiting a vulnerability in any program you run, including a graphical one) to be able to read the root password.
Trisquel has no root password by default: root cannot log in.
I believe that would indeed be the way to go, calling the script from root's crontab. You can edit it with:
$ sudo crontab -e
Please use the rating system to mark posts that go against the Community Guidelines
Lun, 09/27/2021 - 17:47
I'm not sure whether I could make root account unlocked (i.e., setting a password for it) by using text-mode installer (something like Debian Installer). But you can try it.
Please use the rating system to mark posts that go against the Community Guidelines
Inicie sesión ou rexístrese para enviar comentarios
Copyright © 2004–2022 The Trisquel Project | Otherwise noted, the contents of this page are licensed under the GNU Free Documentation License with no invariant sections.