Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-02-03 Thread Zhu Sha Zang
Have you tried "Alt+F2"?

Regards

On Sat, 30 Jan 2016 20:21:02 +
Godzil  wrote:

> I think that you can use a standard passwd command with specificaly given 
> passwd/shadow files
> 
> But passwd can also be edited by hand, you just need to add a new entry and a 
> not used uid, and the shadow file can also easily edited by hand, but you 
> will need to he sure that the password hash you add is correct.
> 
> There is a way to have no password but I'll remember what to put in the 
> Shadow file, maybe an empty entry for the password, I'm not sure, I'll take a 
> look when I can, but I'm sure plenty of people would know here
> 
> Good luck,
> Manoël 
> 
> > Le 30 janv. 2016 à 17:24, Andrew Lowe  a écrit :
> >   
> >> On 01/30/16 23:34, Godzil wrote:
> >> So you can log from SSH or telnet but not the console?
> >> 

> >> If not, I would check all the profile and bashrc files to be sure there is 
> >> nothing wrong there.
> >> 
> >> If you can log from outside, could you have forbidden root to log from 
> >> tty0?
> >> You should try adding another user connecting from outside, them log into 
> >> that user on the local screen, if it works that mean something prevent 
> >> root to log from the main terminal..
> >> 
> >> I hope that could help,
> >> Manoël  
> > 
> > Manoel,
> >No access from ssh. I had to physically remove the disk from the
> > machine, place it in another, fiddle the shadow file, then replace it in
> > the ARM machine.
> > 
> >Do you know of any doco that explains how to add a user manually. By
> > manually I mean that I will have to remove the disk, place it in another
> > machine and then manually edit the appropriate files to add a new user.
> > I have no idea as to what I need to fiddle.
> > 
> >Andrew
> >   
> 



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Willie Matthews
On Sun, 31 Jan 2016 01:24:48 +0800
Andrew Lowe  wrote:

> On 01/30/16 23:34, Godzil wrote:
> > So you can log from SSH or telnet but not the console?
> > 
> > If not, I would check all the profile and bashrc files to be sure
> > there is nothing wrong there.
> > 
> > If you can log from outside, could you have forbidden root to log
> > from tty0? You should try adding another user connecting from
> > outside, them log into that user on the local screen, if it works
> > that mean something prevent root to log from the main terminal..
> > 
> > I hope that could help,
> > Manoël
> >   
> 
> Manoel,
>   No access from ssh. I had to physically remove the disk from
> the machine, place it in another, fiddle the shadow file, then
> replace it in the ARM machine.
> 
>   Do you know of any doco that explains how to add a user
> manually. By manually I mean that I will have to remove the disk,
> place it in another machine and then manually edit the appropriate
> files to add a new user. I have no idea as to what I need to fiddle.
> 
>   Andrew
> 

You can use a chroot in another machine.

-- 

Willie Matthews
matthews.willi...@gmail.com
(702) 659-9966


pgp5SytEpwNMU.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
I think that you can use a standard passwd command with specificaly given 
passwd/shadow files

But passwd can also be edited by hand, you just need to add a new entry and a 
not used uid, and the shadow file can also easily edited by hand, but you will 
need to he sure that the password hash you add is correct.

There is a way to have no password but I'll remember what to put in the Shadow 
file, maybe an empty entry for the password, I'm not sure, I'll take a look 
when I can, but I'm sure plenty of people would know here

Good luck,
Manoël 

> Le 30 janv. 2016 à 17:24, Andrew Lowe  a écrit :
> 
>> On 01/30/16 23:34, Godzil wrote:
>> So you can log from SSH or telnet but not the console?
>> 
>> If not, I would check all the profile and bashrc files to be sure there is 
>> nothing wrong there.
>> 
>> If you can log from outside, could you have forbidden root to log from tty0?
>> You should try adding another user connecting from outside, them log into 
>> that user on the local screen, if it works that mean something prevent root 
>> to log from the main terminal..
>> 
>> I hope that could help,
>> Manoël
> 
> Manoel,
>No access from ssh. I had to physically remove the disk from the
> machine, place it in another, fiddle the shadow file, then replace it in
> the ARM machine.
> 
>Do you know of any doco that explains how to add a user manually. By
> manually I mean that I will have to remove the disk, place it in another
> machine and then manually edit the appropriate files to add a new user.
> I have no idea as to what I need to fiddle.
> 
>Andrew
> 



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Andrew Lowe
On 01/30/16 23:34, Godzil wrote:
> So you can log from SSH or telnet but not the console?
> 
> If not, I would check all the profile and bashrc files to be sure there is 
> nothing wrong there.
> 
> If you can log from outside, could you have forbidden root to log from tty0?
> You should try adding another user connecting from outside, them log into 
> that user on the local screen, if it works that mean something prevent root 
> to log from the main terminal..
> 
> I hope that could help,
> Manoël
> 

Manoel,
No access from ssh. I had to physically remove the disk from the
machine, place it in another, fiddle the shadow file, then replace it in
the ARM machine.

Do you know of any doco that explains how to add a user manually. By
manually I mean that I will have to remove the disk, place it in another
machine and then manually edit the appropriate files to add a new user.
I have no idea as to what I need to fiddle.

Andrew



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Meino . Cramer
Andrew Lowe  [16-01-30 16:16]:
> Hi all,
>   I have an ARM device that I have Gentoo on. In the past I had it
> successfully running and then one day I managed to "customise" something
> and I could no longer get it to boot. At the time I though "I'll have to
> fix that...". Today I'm trying.
> 
>   The machine in question operates as a small server hence runs headless.
> For the work at hand, I've attached it to the TV hence everything is in
> text mode, no X.
> 
>   When it boots, I'm presented with the login prompt. I enter "root", the
> password & enter. The screen flashes, a frame by frame viewing of a
> video of this shows that it's printing the last time I logged in and
> then am represented with the login again. This just repeats. I though
> that I had forgotten the root password hence accessed the disk via
> another machine, reset things in the shadow file and rebooted. Once
> again the screen flashed, with the same output, and I was presented with
> the login prompt again.
> 
>   Any thought on what could be going wrong here? I've ensured all the
> files that should be owned by root are owned by root - I think. Logging
> appears not to be working so I can't get much from that. I'm 99.99% sure
> this is not an ARM specific problem as the machine was running perfectly
> beforehand.
> 
>   Any thoughts greatly appreciated,
> 
>   Andrew
> 


Hi Andrew,

things which came into my mind (in no specific order):

- default shell wrongly set
- $HOME points to Shangrila
- fstab corrupted so that vital parts of the root tree get
  not correctly mounted on tmpfs like /var, /tmp and such.

Does this ARM system has an UART, which spits out the whole
boot process and more so there may be a chance to get closer 
to any informations (error logs etc)?

Fingers crossed!
Good luck!

Meino






Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
So you can log from SSH or telnet but not the console?

If not, I would check all the profile and bashrc files to be sure there is 
nothing wrong there.

If you can log from outside, could you have forbidden root to log from tty0?
You should try adding another user connecting from outside, them log into that 
user on the local screen, if it works that mean something prevent root to log 
from the main terminal..

I hope that could help,
Manoël

> Le 30 janv. 2016 à 15:10, Andrew Lowe  a écrit :
> 
> Hi all,
>I have an ARM device that I have Gentoo on. In the past I had it
> successfully running and then one day I managed to "customise" something
> and I could no longer get it to boot. At the time I though "I'll have to
> fix that...". Today I'm trying.
> 
>The machine in question operates as a small server hence runs headless.
> For the work at hand, I've attached it to the TV hence everything is in
> text mode, no X.
> 
>When it boots, I'm presented with the login prompt. I enter "root", the
> password & enter. The screen flashes, a frame by frame viewing of a
> video of this shows that it's printing the last time I logged in and
> then am represented with the login again. This just repeats. I though
> that I had forgotten the root password hence accessed the disk via
> another machine, reset things in the shadow file and rebooted. Once
> again the screen flashed, with the same output, and I was presented with
> the login prompt again.
> 
>Any thought on what could be going wrong here? I've ensured all the
> files that should be owned by root are owned by root - I think. Logging
> appears not to be working so I can't get much from that. I'm 99.99% sure
> this is not an ARM specific problem as the machine was running perfectly
> beforehand.
> 
>Any thoughts greatly appreciated,
> 
>Andrew
> 



Re: [gentoo-user] After logging into a console. text flashes on the screen and returns to the login

2016-01-30 Thread Godzil
Chroot will only work if the host is an ARM computer or it fill just be a nice 
failure :)


But qemu-static and chroot is a good functional solution

Manoël

> Le 30 janv. 2016 à 20:41, Willie Matthews  a 
> écrit :
> 
> On Sun, 31 Jan 2016 01:24:48 +0800
> Andrew Lowe  wrote:
> 
>>> On 01/30/16 23:34, Godzil wrote:
>>> So you can log from SSH or telnet but not the console?
>>> 
>>> If not, I would check all the profile and bashrc files to be sure
>>> there is nothing wrong there.
>>> 
>>> If you can log from outside, could you have forbidden root to log
>>> from tty0? You should try adding another user connecting from
>>> outside, them log into that user on the local screen, if it works
>>> that mean something prevent root to log from the main terminal..
>>> 
>>> I hope that could help,
>>> Manoël
>> 
>> Manoel,
>>No access from ssh. I had to physically remove the disk from
>> the machine, place it in another, fiddle the shadow file, then
>> replace it in the ARM machine.
>> 
>>Do you know of any doco that explains how to add a user
>> manually. By manually I mean that I will have to remove the disk,
>> place it in another machine and then manually edit the appropriate
>> files to add a new user. I have no idea as to what I need to fiddle.
>> 
>>Andrew
> 
> You can use a chroot in another machine.
> 
> -- 
> 
> Willie Matthews
> matthews.willi...@gmail.com
> (702) 659-9966