<div dir="ltr">protoze ti prikaz pro shell vraci false, je to skoto stejne jako zakazani loginu (pokud se seredne nepletu)...<br>Stopni stroj, vytvor si playground, pripoj dataset stroje, zmen rucne v souboru /etc/password shell pro roota, odpoj dataset, zapni znovu stroj.<div>Zni to slozite, ale za 5 minut mas hotovo a nemusis nic hackovat ;)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 15, 2016 at 1:04 AM, Timothy Hobbs <span dir="ltr"><<a href="mailto:timothy@hobbs.cz" target="_blank">timothy@hobbs.cz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Už jsem to zkusil. Vůbec nechapu proč to nefunguje, ale nefunguje.
Už uvažuji o tom, napsat patch pro chsh, aby to napsal jen<br>
<br>
"<br>
You are making a mistake, a very big mistake, you don't know what
kind of doodoo you are getting yourself into.<br>
Exiting...<br>
"<br>
pokud je spouštění jako root. :D<br>
<br>
Tim<div><div class="h5"><br>
<br>
<div>On 02/15/16 00:27, Michal Dobsovic
wrote:<br>
</div>
<blockquote type="cite">
<div>
<div>Mozno blbost, ale skus:</div>
<div>$ su -c /bin/bash</div>
<div><br>
</div>
<div>:-)<br>
<br>
<div>Miso</div>
</div>
<br>
<br>
<br>
<div>On Sun, Feb 14, 2016 at 2:44 PM
-0800, "Timothy Hobbs"
<span dir="ltr"><<a href="mailto:timothy@hobbs.cz" target="_blank">timothy@hobbs.cz</a>></span>
wrote:<br>
<br>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div><br>
Hello/ahoj,<br>
<br>
změnil jsem shell pro root a teď nemůžu přihlasit jako root.
Zkusil jsem<br>
nasladujicí...<br>
<br>
I messed up with chsh root on my VPS. I can still log in
with other<br>
users, but I cannot log in as root. I cannot figure out how
to set the<br>
root shell back to something sane. None of my other users
are sudoers. I<br>
have tried:<br>
<br>
VPSAdmin remote console:<br>
<br>
When I enter root and the password, the screen resets
(because the<br>
incorrect shell entry exits imediately...)<br>
<br>
I also tried:<br>
<br>
$ su --login --shell /bin/bash --command /bin/bash<br>
Password:<br>
Cannot execute fish<br>
<br>
$ chsh --shell /bin/bash root<br>
You may not change the shell for 'root'.<br>
<br>
$ ssh root@<ip-address> /bin/bash<br>
root@<ip-address> password:<br>
Permission denied, please try again.<br>
root@<ip-address> password:<br>
Permission denied, please try again.<br>
root@<ip-address> password:<br>
Permission denied (publickey,password).<br>
<br>
I'm not sure what else to try :(<br>
<br>
Prosím, vynechte komentáře o tom, že jsem idiot. Už mě to
opakoval Google asi milion krat za tu hodinu co Googlím
řešení :D<br>
<br>
Tim -<br>
timthelion<br>
<br>
_______________________________________________<br>
Community-list mailing list<br>
<a href="mailto:Community-list@lists.vpsfree.cz" target="_blank">Community-list@lists.vpsfree.cz</a><br>
<a href="http://lists.vpsfree.cz/listinfo/community-list" target="_blank">http://lists.vpsfree.cz/listinfo/community-list</a><br>
</div>
</span></font>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Community-list mailing list
<a href="mailto:Community-list@lists.vpsfree.cz" target="_blank">Community-list@lists.vpsfree.cz</a>
<a href="http://lists.vpsfree.cz/listinfo/community-list" target="_blank">http://lists.vpsfree.cz/listinfo/community-list</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Community-list mailing list<br>
<a href="mailto:Community-list@lists.vpsfree.cz">Community-list@lists.vpsfree.cz</a><br>
<a href="http://lists.vpsfree.cz/listinfo/community-list" rel="noreferrer" target="_blank">http://lists.vpsfree.cz/listinfo/community-list</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">S přáním pěkného dne,<br>Martin Mikšaník<br><br>gsm: +420 602 623 934<br>icq: 311047283<br></div>
</div>