I tried this yesterday on the ARM list and got no response. Perhaps someone here has a suggestion?
I have Fedora-Xfce-armhfp-22-3-sda.raw installed on an SD card. It runs to the initial installation screen and wants a password entered. Unfortunately it doesn't recognize the keyboard and mouse inputs.
So, I should be able to SSH into it but again since I haven't created a password:
[bobg@box10 ~]$ ssh -XC bobg@192.168.1.83 bobg@192.168.1.83's password: Permission denied, please try again.
I found Googling:
/mnt/etc/sdcard/passwd To start without passwd remove "x" from the root line as below: root:x:0:0:root:/root:/bin/bash > root::0:0:root:/root:/bin/bash
I did that but it still wont let me in, just "try again."
What else can I try to work around this?
Any suggestion appreciated,
Bob
Den 2015-06-11 11:12, Bob Goodwin - Zuni, Virginia, USA skrev:
I tried this yesterday on the ARM list and got no response. Perhaps someone here has a suggestion?
I have Fedora-Xfce-armhfp-22-3-sda.raw installed on an SD card. It runs to the initial installation screen and wants a password entered. Unfortunately it doesn't recognize the keyboard and mouse inputs.
So, I should be able to SSH into it but again since I haven't created a password:
[bobg@box10 ~]$ ssh -XC bobg@192.168.1.83 bobg@192.168.1.83's password: Permission denied, please try again.
I found Googling:
/mnt/etc/sdcard/passwd To start without passwd remove "x" from the root line as below: root:x:0:0:root:/root:/bin/bash > root::0:0:root:/root:/bin/bash
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
I did that but it still wont let me in, just "try again."
What else can I try to work around this?
Any suggestion appreciated,
Bob
On 11/06/15 06:12, Jon Ingason wrote:
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
Ok, I see:
root:$6$JWD4PKHdIqOUHz6.$vAyKsz/.CbDymUfp4zmdtmjQgu1Dayif7YxDJUrVHay7PGlJwKkKbLTP4TEkqGeD68tTyBKeON3/APKZ4A0E61::0:99999:7:::
What whould it look like when removed? Just root: ?
I've removed the "x" from /etc/passwd and it if it isn't exactly right afterward ...
Den 2015-06-11 13:57, Bob Goodwin - Zuni, Virginia, USA skrev:
On 11/06/15 06:12, Jon Ingason wrote:
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
Ok, I see:
root:$6$JWD4PKHdIqOUHz6.$vAyKsz/.CbDymUfp4zmdtmjQgu1Dayif7YxDJUrVHay7PGlJwKkKbLTP4TEkqGeD68tTyBKeON3/APKZ4A0E61::0:99999:7:::
What whould it look like when removed? Just root: ?
I've removed the "x" from /etc/passwd and it if it isn't exactly right afterward ...
-- Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box10 FEDORA-22/64bit LINUX XFCE
I would not have touch /etc/passwd file, only remove the hashed password /etc/shadow file :-)
On 11/06/15 07:57, Bob Goodwin - Zuni, Virginia, USA wrote:
On 11/06/15 06:12, Jon Ingason wrote:
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
Ok, I see:
root:$6$JWD4PKHdIqOUHz6.$vAyKsz/.CbDymUfp4zmdtmjQgu1Dayif7YxDJUrVHay7PGlJwKkKbLTP4TEkqGeD68tTyBKeON3/APKZ4A0E61::0:99999:7:::
.
Oops, that's the wrong card, it is like this:
root:*:16489:0:99999:7:::
.
What whould it look like when removed? Just root: ?
I've removed the "x" from /etc/passwd and it if it isn't exactly right afterward the boor process stopped ...
-- Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box10 FEDORA-22/64bit LINUX XFCE
Den 2015-06-11 14:32, Bob Goodwin - Zuni, Virginia, USA skrev:
On 11/06/15 07:57, Bob Goodwin - Zuni, Virginia, USA wrote:
On 11/06/15 06:12, Jon Ingason wrote:
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
Ok, I see:
root:$6$JWD4PKHdIqOUHz6.$vAyKsz/.CbDymUfp4zmdtmjQgu1Dayif7YxDJUrVHay7PGlJwKkKbLTP4TEkqGeD68tTyBKeON3/APKZ4A0E61::0:99999:7:::
.
Oops, that's the wrong card, it is like this:
root:*:16489:0:99999:7:::
NO, nothing in the password field. See below:
root::16489:0:99999:7:::
.
What whould it look like when removed? Just root: ?
I've removed the "x" from /etc/passwd and it if it isn't exactly right afterward the boor process stopped ...
-- Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box10 FEDORA-22/64bit LINUX XFCE
Den 2015-06-11 14:32, Bob Goodwin - Zuni, Virginia, USA skrev:
On 11/06/15 07:57, Bob Goodwin - Zuni, Virginia, USA wrote:
On 11/06/15 06:12, Jon Ingason wrote:
Check if you have /mnt/etc/sdcard/shadow. If you have then remove the hashed pasword for root ie:
root:<hashed password>::0:99999:7::: -> root:::0:99999:7:::
Ok, I see:
root:$6$JWD4PKHdIqOUHz6.$vAyKsz/.CbDymUfp4zmdtmjQgu1Dayif7YxDJUrVHay7PGlJwKkKbLTP4TEkqGeD68tTyBKeON3/APKZ4A0E61::0:99999:7:::
.
Oops, that's the wrong card, it is like this:
root:*:16489:0:99999:7:::
.
What whould it look like when removed? Just root: ?
I've removed the "x" from /etc/passwd and it if it isn't exactly right afterward the boor process stopped ...
-- Bob Goodwin - Zuni, Virginia, USA http://www.qrz.com/db/W2BOD box10 FEDORA-22/64bit LINUX XFCE
By the way have you enabled "PermitRootLogin" in the /etc/ssh/sshd_config? Remove # in the start of the line:
#PermitRootLogin yes
Look at man sshd_config for futher information.
On 11/06/15 08:59, Jon Ingason wrote:
By the way have you enabled "PermitRootLogin" in the /etc/ssh/sshd_config? Remove # in the start of the line:
#PermitRootLogin yes
Look at man sshd_config for futher information.
-- Regards Jon Ingason
.
Did that in addition to changing root in /etc/shadow. It booted and gave me a text screen I've never seen before asking to set language, password, etc. I set the password but apparently did not close it correctly, it didn't work and worse yet that apparently only comes up once. I can't get back to it, it goes directly to the graphic login screen and I have no keyboard/mouse control which I would like to investigate via ssh ...
The changes I made are still there, nut something triggers the text screen for pass word entry, what?
At this point all I can do is start over with another sd card.
Your help has been valuable, thanks,
Bob
On Thu, 2015-06-11 at 10:22 -0400, Bob Goodwin - Zuni, Virginia, USA wrote:
Did that in addition to changing root in /etc/shadow. It booted and gave me a text screen I've never seen before asking to set language, password, etc. I set the password but apparently did not close it correctly, it didn't work and worse yet that apparently only comes up once. I can't get back to it, it goes directly to the graphic login screen and I have no keyboard/mouse control which I would like to investigate via ssh ...
Not something to do with firstboot or initial-setup? I seem to recall that if you dropped a dot prefixed filename into the root directory, it'd be read at boot time, and go through the firstboot setup routine.
https://fedoraproject.org/wiki/FirstBoot https://fedoraproject.org/wiki/InitialSetup
On Thu, 11 Jun 2015 05:12:17 -0400, Bob Goodwin - Zuni, Virginia, USA wrote:
I tried this yesterday on the ARM list and got no response. Perhaps someone here has a suggestion?
I have Fedora-Xfce-armhfp-22-3-sda.raw installed on an SD card. It runs to the initial installation screen and wants a password entered. Unfortunately it doesn't recognize the keyboard and mouse inputs.
So, I should be able to SSH into it but again since I haven't created a password:
[bobg@box10 ~]$ ssh -XC bobg@192.168.1.83 bobg@192.168.1.83's password: Permission denied, please try again.
I found Googling:
/mnt/etc/sdcard/passwd To start without passwd remove "x" from the root line as below: root:x:0:0:root:/root:/bin/bash > root::0:0:root:/root:/bin/bash
I did that but it still wont let me in, just "try again."
What else can I try to work around this?
Any suggestion appreciated,
It's asking you for bobg's password, not root's. Modifying root's credentials won't touch bobg's.
On 11/06/15 10:57, Michael Schwendt wrote:
It's asking you for bobg's password, not root's. Modifying root's credentials won't touch bobg's.
Yes, a bad example, I'm sorry.
ssh root@192.168.1.83 produced the same result.
Thanks for the warning though, an easy thing for me to overlook.
Bob
On 06/11/2015 11:11 AM, Bob Goodwin - Zuni, Virginia, USA wrote:
On 11/06/15 10:57, Michael Schwendt wrote:
It's asking you for bobg's password, not root's. Modifying root's credentials won't touch bobg's.
Yes, a bad example, I'm sorry.
ssh root@192.168.1.83 produced the same result.
by chance, do bobg and root have same passwords on both systems?
you must supply password for system you ssh to, not system from.
=+=+=+= [geo@boxen ~]$ ssh geo@192.168.1.5 The authenticity of host '192.168.1.5 (192.168.1.5)' can't be established. RSA key fingerprint is 30:27:fb:49:e8:76:a4:a0:c8:56:02:8c:6e:aa:f7:92. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '192.168.1.5' (RSA) to the list of known hosts. geo@192.168.1.5's password: Permission denied, please try again. geo@192.168.1.5's password: [geo@tos-sat ~]$ ll total 32 drwxr-xr-x. 2 geo geo 4096 Jun 9 07:31 Desktop drwxr-xr-x. 2 geo geo 4096 Jun 10 13:30 Documents drwxr-xr-x. 3 geo geo 4096 Jun 10 20:00 Downloads drwxr-xr-x. 2 geo geo 4096 Jun 9 07:30 Music drwxr-xr-x. 2 geo geo 4096 Jun 9 07:30 Pictures drwxr-xr-x. 2 geo geo 4096 Jun 9 07:30 Public drwxr-xr-x. 2 geo geo 4096 Jun 9 07:30 Templates drwxr-xr-x. 2 geo geo 4096 Jun 9 07:30 Videos [geo@tos-sat ~]$ =+=+=+=
in above, 1st password was for boxen. 2nd password was for tos-sat. which is what it is asking for with "geo@192.168.1.5's password:" as noted by "5's".
so, disregard what you found in your gaagle search and restore the files you changed. ist because my password files in /etc are as yours were.
ihtftdi. ;-)
On 11/06/15 14:07, g wrote:
by chance, do bobg and root have same passwords on both systems?
you must supply password for system you ssh to, not system from. in above, 1st password was for boxen. 2nd password was for tos-sat. which is what it is asking for with"geo@192.168.1.5's password:" as noted by "5's".
so, disregard what you found in your gaagle search and restore the files you changed. ist because my password files in /etc are as yours were.
.
Due to limited mental capacity I only use one long password, designated strong by the Fedora installer for whatever that is worth, one for everything, mostly. Certainly in this case I've made them all the same.
On 06/11/2015 01:31 PM, Bob Goodwin - Zuni, Virginia, USA wrote: <<>>
Due to limited mental capacity I only use one long password, designated strong by the Fedora installer for whatever that is worth, one for everything, mostly. Certainly in this case I've made them all the same.
. i make not brag for my chemo brain, other than a simple 1 letter change between my 2 systems. ;-)
only other suggestion, if you have not tried already, would be login directly on the rpi2b, remove password for bobg, then try a remote login to see what happens. nct.
On 11/06/15 10:57, Michael Schwendt wrote:
It's asking you for bobg's password, not root's. Modifying root's credentials won't touch bobg's.
. I've created another sd card with the changes Jon Ingason suggested and once more on the first boot it goes to a text screen asking for set up data, password, etc, four items.
I am getting this text screen to set the initial conditions, I've set the root password, Language, and time zone information. Apparently the set user is disabled. But that all seems straight forward, however once I've done that I don't know what to do next, I'm guessing "r" for refresh which may be writing what I've entered and then "q" for quit?
"Please make your choice from above ["q" to quit | "c" to continue | "r" to refresh]:_"
Earlier I set the password and "q". It then asks are you sure, if not you may not be able to use the system [I paraphrase]. I could not ssh into it and had to start from scratch with another sd card.
So now I try with the new memory card and try to connect via ssh:
[bobg@box10 ~]$ ssh root@192.168.1.83 root@192.168.1.83's password: Permission denied, please try again. root@192.168.1.83's password: Permission denied, please try again. root@192.168.1.83's password: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
Well that did not work either. I am still locked out of the new install. If nothing else it is secure!
I saved the SD card contents and can rewrite it but that's a slow process no matter how I do it. There must be a way to undo that first boot restriction? Even then I don't know how to respond to that menu after entering the requested data? [I snapped a photo of the screen should anyone be interested in that]
Can anyone make some sense out of this.
Bob
On 11/06/15 13:38, Joe Zeff wrote:
On 06/11/2015 10:29 AM, Bob Goodwin - Zuni, Virginia, USA wrote:
Well that did not work either. I am still locked out of the new install. If nothing else it is secure!
Let me guess: root login via ssh is disabled by default.
. When that's the case I don't think it ever gets to the point where it asks for a password?
Says something like "no path," it's been a while since I've seen that ... But you may be right.