Jump to content
nomisco

Web terminal login fails

8 posts in this topic Last Reply

Recommended Posts

I'm a new user, with very little exposure to Linux. I have a problem with the Web Terminal. The only way I can get around this is to reboot the server. It's a very sporadic problem though. The reason I use the terminal is because I'm getting to grips with the simple tools such as Midnight Commander (very useful).

 

All the information in the log is unRAID login[14988]: ILLEGAL ROOT LOGIN on '/dev/pts/8

 

At the top of the window, it says login -f root (unRAID)

 

In the window it then says Login incorrect, and then a splash of Connection Closed

 

I've changed the WebGUI password (so it does have one now), but don't see how this might be connected because most of the time the terminal login works, just occasionally doesn't. But trying to troubleshoot, I thought I'd remove the WebGUI password to see if that makes any difference, but I can't see how to set it back to blank (I'm guessing it's editing a config file, but I don't know how). I don't recall if there was a problem before I set a password or not.

Edited by nomisco

Share this post


Link to post

Found this topic, somewhat related https://lime-technology.com/forums/topic/68828-used-to-be-able-to-login-as-root-on-web-terminal-but-now-i-cant/?tab=comments#comment-634878

 

I think I understand this 'pty' thing being a fake terminal. I looked in the processes and appear to have up to number 7 listed already, which is presumably why my attempt generates 'pty8' in the log. Is this number of them normal? Is there a limit?

 

When I've finished with the terminal I usually just close the window and get a 'Do you want to leave?' dialogue box. Is this the right way to do it, or should I exit the terminal via a command? Am I inadvertently leaving too many pty instances open?

Share this post


Link to post

I am experiencing the same issue.  I have been using the Web Terminal to run MC then just close the window via the little X when done.  After a number of sessions, I hit the exact same issue as reported by @nomisco.  My log shows: Feb 24 14:49:40 Tower login[25551]: ILLEGAL ROOT LOGIN on '/dev/pts/9'

 

Each time this occurs is always on the pts/9, SSH login works just fine, but lacking the knowledge of how to troubleshoot only a reboot appears to reset the issue.  

 

I live in Chrome, but installed Firefox to check - and the issue persists across to a virgin browser... so its not a cache niggle. 

 

My SSH keys are not corrupted / zero bytes as per: 

ls -la /boot/config/ssh

Thoughts Crew?

Share this post


Link to post

ssh into the server...

who -aH

find the PID of pts/# shown in the eventlog immediately after the web terminal failure

kill PID#

 

.... doesn't work... as who -aH immediately shows the same pts being used again :/

 

also tried shell in a box... but it also is throwing the same issue

 

What appears to be the problem is...

root / password is not being accepted in Shell in a Box / Web Terminal after x number of uses without a full server restart... but it works fine via SSH Root@My.Ip.Address

Edited by landS

Share this post


Link to post
On 2/25/2018 at 5:00 AM, landS said:

ssh into the server...

who -aH

find the PID of pts/# shown in the eventlog immediately after the web terminal failure

kill PID#

 

.... doesn't work... as who -aH immediately shows the same pts being used again :/

 

also tried shell in a box... but it also is throwing the same issue

 

What appears to be the problem is...

root / password is not being accepted in Shell in a Box / Web Terminal after x number of uses without a full server restart... but it works fine via SSH Root@My.Ip.Address

 

So the only way to fix it is a restart? or is there a cooldown?

Share this post


Link to post

FWIW I always type exit before closing the command window. It's a habit I got into a long time ago. I've never had the problems you describe so maybe it's a good habit.

Share this post


Link to post

I can confirm that after rebooting and dozens of access uses via web terminal... Typing exit allows repeat functioning.   

 

@limetech can the web terminal send an 'exit' command upon closure to help dummy proof it (as I look in the mirror) 

Share this post


Link to post

I sometimes have flaky connection to my server and often lose the terminal connection and have to open a new one. Would be nice if there was a way of logging off or exiting all existing connections somehow.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now