LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting shutdown message when I try to login as anyone but root on CLI (http://www.linuxquestions.org/questions/linux-newbie-8/getting-shutdown-message-when-i-try-to-login-as-anyone-but-root-on-cli-4175416169/)

alarazr 07-11-2012 12:28 PM

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

Kustom42 07-11-2012 12:35 PM

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.

alarazr 07-11-2012 12:42 PM

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

Kustom42 07-11-2012 12:53 PM

Quote:

Originally Posted by alarazr (Post 4725236)
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?

alarazr 07-11-2012 01:15 PM

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!

Kustom42 07-11-2012 01:22 PM

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)


All times are GMT -5. The time now is 11:29 AM.