LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2012, 12:28 PM   #1
alarazr
Member
 
Registered: Jul 2012
Location: UK
Distribution: Debian x64
Posts: 65

Rep: Reputation: Disabled
Getting shutdown message when I try to login as anyone but root on CLI


Hey guys. When I try to login as my user on the CLI (Debian wheezy netinstall) I get

dweb login:alarazr
The system is going down on Wed Jul 11 01:12:33 2012

WARNINGshutdown now!


Login incorrect

It doesn't even ask for my password. When I login as root, I get the same message but I'm then asked for my password. It's something to do with a fudged shutdown command. I can't remember exactly what I typed but I tried to get it to shutdown with the 'now' argument and display the message 'WARNING!!!'

Cheers in advance
 
Old 07-11-2012, 12:35 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Login as root and do a ps for a shutdown command. Its broadcasting messages on the tty's to your users.

Code:
ps auxww | grep shutdown | egrep -v grep
And then kill the process.
 
Old 07-11-2012, 12:42 PM   #3
alarazr
Member
 
Registered: Jul 2012
Location: UK
Distribution: Debian x64
Posts: 65

Original Poster
Rep: Reputation: Disabled
With 'ps auxww | grep shutdown | egrep -v grep' I get no output. With 'psauxww | grep shutdown' I get the task (PID 6003). How do I kill it? Thanks, by the way

Last edited by alarazr; 07-11-2012 at 12:43 PM.
 
Old 07-11-2012, 12:53 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Quote:
Originally Posted by alarazr View Post
With 'ps auxww | grep shutdown | egrep -v grep' I get no output. With 'psauxww | grep shutdown' I get the task (PID 6003). How do I kill it? Thanks, by the way
You get a pid 6003 that is your grep statement. The egrep -v grep command tells your system to ignore any commands that include grep. A shutdown command would not have it in there.

To confirm this you can post the output of your ps auxww | grep shutdown command and we can let you know.

Have you tried just rebooting the system?
 
1 members found this post helpful.
Old 07-11-2012, 01:15 PM   #5
alarazr
Member
 
Registered: Jul 2012
Location: UK
Distribution: Debian x64
Posts: 65

Original Poster
Rep: Reputation: Disabled
Reboot worked fine thanks! I don't understand why though. I'd already shutdown and turned back on a few times, but not rebooted. Thanks!
 
Old 07-11-2012, 01:22 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Wierdness occurs in technology from time to time, sounds like some looping POSIX signals or a runaway process.

When all else fails reboot!(or throw it out the window, whichever is more convenient)
 
  


Reply

Tags
cli, debian, shutdown



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CLI using message queue yaplej Programming 5 04-03-2012 12:45 PM
root user login error message jpmaxyusuf Linux - Desktop 1 06-01-2011 12:11 AM
strange message when i login as a root Whynot Linux - General 6 03-16-2006 05:45 PM
MDV06, KDE 3.4.2 will only shutdown through CLI. Lordandmaker Linux - Newbie 1 12-05-2005 12:32 AM
newbie: no shutdown or root login in gnome desktop manager mhelal Linux - Newbie 3 03-21-2005 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration