Ubuntu Servers :: Allow Logins When There Is A Shutdown In Progress?

Jun 24, 2010

I've got a server that I just use for backing up and archiving files. Since I don't need access to it often I just keep it powered off. I set up wakeonlan and have port 9 and port 22 forwarded to it.

I travel fairly often, and how its set up now, I can send the magic packet to the connection its on and wakeonlan kicks in and powers up the server. Then I can sftp into and access the files I need and then shut it down again in ssh.

It all works good until there's a power outage. For some reason after a power outage wakeonlan doesn't work.

Here's a workaround for this: I can set the system to automatically power up after a power outage. Problem is, the computer could be on for a week or more, wasting power before I log in and turn it off. So the workaround for that is to put a "deadman's switch" where a script will run at startup that will run "shutdown -q -P +5" which will power off the system after five minutes.

After I run wakeonlan I can ssh in and run "shutdown -c" to cancel that shutdown and still use it. If there's a power outage, once power is restored, the system will start up and then automatically shutdown again and be ready for the next wakeonlan signal I send.

Everything is flawless, except one problem. When "shutdown -q -P +5" executes, it disables all new logins. If I'm fast enough I can ssh in before the shutdown program disables logins, but not always. What I want is a way I can run shutdown without disabling logins.

View 5 Replies


ADVERTISEMENT

Ubuntu Servers :: TTY / SSH Logins Timing Out?

Aug 28, 2010

Have had issues with my 10.4 Server regularly. I believe it's something that I've done wrong in some of the hosts settings or the like. When I try and login to the server, especially on startup, I get messages saying the login attempt timed out after 60 seconds and when I login via ssh it boots me from the connection after about 60 seconds of trying to login. It's after entering the password so it's something to do with authentication most likely. I think the issue is with my /etc/hosts file as I said before. Hostname is blackbox and it's only meant to be a local network server.

/etc/hosts file:

Code:

127.0.0.1 localhost.localdomain localhost
192.168.1.5 blackbox.localdomain blackbox
# The following lines are desirable for IPv6 capable hosts

[code]....

View 9 Replies View Related

Ubuntu Servers :: Disable Shutdown For Normal User?

Mar 12, 2010

for security reasons,I want to disable shutdown for normal user, but the post here does not help me. It is because when I open the /etc/X11/gdm/gdm.conf I just saw a blank file. I use the 9.10 version.

View 6 Replies View Related

Ubuntu Servers :: Run Fsck If Last Shutdown Wasn't Clean?

Jun 13, 2010

I have a file server that has a raid array with a jfs file system attached. Whenever there is a power cut (quite frequently in our house), and the server is not shutdown cleanly, then the raid array is not automatically mounted since ubuntu doesn't know if the journal is clean. I have to then manually run fsck and remount the partition by hand which is a bit annoying. Basically, does anybody know if fsck can be setto run if a non-clean shutdown has been detected, or failing that, on every boot?

View 2 Replies View Related

Ubuntu Servers :: No Longer Access Interface - Get Shutdown

Apr 12, 2011

2011-04-11 11:57:03 UTC I don't know what happening with my centralized log-server running octopussy. Currently it is working in a vmware setup with approx 980 Mb ram and is set in bridge mode. Currently is it set to receive logs from logs devices which are 4 in number one of which includes the core isg-1000 device. This setup is still in its test form....now what happens after some time (sometimes it taken days and sometimes just hours) when the connection (https) is suddenly lost to the apache and i can no longer access the interface. What happens more strangely my Ethernet interface gets shutdown on ubuntu. I have to restart the services by issuing /etc/init.d/networking restart.

Even at times it itself start receiving network packets on its own; without even restarting; i don't what the hell is wrong with the server. I cannot understand its erratic behavior. I need a sound and reliable Ethernet connectivity at all times because coz of loss of connectivity in my case would mean loss of logging functionality. I dnt want any time-gap in logging ...as im currently logging some highly critical devices on this server.

View 8 Replies View Related

Ubuntu Servers :: Shutdown Command Results In Lock Up

May 2, 2011

When I shutdown my server it seems to lock up. I use ssh for a headless unit and I can reboot fine, but I told it to shutdown and disconnected me and stopped logging (as far as I can tell) and then nothing. The lights stayed on and I had to press the power button. Is there a way to keep the logger running or to look someplace other then messages. I'm not great with logs.

View 8 Replies View Related

Ubuntu Servers :: Schedule Complete System Shutdown/startup?

Feb 10, 2010

Just curious if it is possible to schedule a complete system shutdown and start up?

My box with ubuntu server on it is only used as an ssh/proxy server, so I would like save on energy costs and add a layer of security by completely shutting it down during the hours I do not use it.

View 5 Replies View Related

Ubuntu Servers :: System Won't Shutdown + Apache Not Auto Starting / Fix It?

Nov 12, 2010

First post here so I'll do my best to provide the information needed.

System:

Dell Poweredge R310
Xeon 3460 2.8Ghz
4x2GB ram
4x 160GB Sata 7.2k (RAID 10)
Ubuntu Server 64bit

If I type as root, "reboot" or "shutdown -r now", nothing happenings - except the apache2 process stops + the usual "System is going down for reboot now". If I type "shutdown -h now" the system goes down.

Upon booting the server back up, MySQL starts correctly, but Apache2 does not - I have to run "service apache2 start", and it starts up fine.

I feel the 2 issues are related. I've reinstalled apache2 completely (configs and all) and this didn't help - I used yum to install/reinstall it.

View 8 Replies View Related

Ubuntu Servers :: Squid Causing /var To Stay Busy During Shutdown?

Apr 3, 2011

i just wanted to check if its something silly ive overseen and if anyone else is having this problem...im running Ubuntu 10.04.2 LTS with latest version of squid 2.7.STABLE7-1ubuntu12.2. now when i shutdown or reboot the system, it says something along this lines of umount: /var is busy (check using lsof...). this is followed by text in red: [fail].when the system starts up again, i can see /var journal is recovering, so the /var partition was not cleanly unmounted during shutdown. obviously, there is a risk of filesystem corruption here. FYI, i have /var and other important mountpoints as separate partitions (LVM; ext4).

to confirm my suspicions of squid still running during shutdown, i checked /var/log/squid/cache.log and there is no indication that it received the signal to terminate. if i manually run "stop squid", then cache.log would show that squid has stopped successfully (or words to that effect).to confirm that /var is locked by squid during shutdown, ive added a script to run "lsof | grep var" before filesystems are unmounted. and voila! it indicates that various files used by squid in /var such as swap.state are still open. hence, the next system startup would result in /var recovering journal again.finally, i tried running "stop squid" before issuing the shutdown command and it successfully unmounts /var and i do not get /var recovering journal on the next system startup.

View 3 Replies View Related

Fedora Servers :: Can't Reboot Or Shutdown Server

Feb 25, 2011

After a couple of days, some commands related to the disk (df) or files (ls) or killing process (kill -9) doesn't respond. Even I can't reboot or shutdown my server. After an hard reboot, some files are not here anymore or the log files are not filled anymore until I restart.My disk are behind the RAID controller i6 and are configure in RAID 1. The disks are two HP SCSI 72,8GB 10k RPM.Maybe I am totally wrong to check the disk access side, so I am open to other explanation.I can also add that my CPU is running under 1% et my RAM under 10%.

View 14 Replies View Related

Fedora Servers :: Nmb Dead But Pid File Exists - At Shutdown?

Mar 11, 2009

After booting I noticed that sometimes nmb was not running. The command # service nmb status gives nmbd dead but pid file exists The timestamp of the pid file suggests that at the last shutdown the pid file was not removed, and I guess this prevented nmb to start properly during booting (Although during booting the messages is [OK]).

If I shut down nmb manually, everything is fine. I checked the log in /var/log/samba/log.nmbd and it doesn't show any error. As mentioned, this occurs only occasionally, and I have no idea what may be causing this.

View 1 Replies View Related

Server :: Shutdown The Nodes From The Master Terminal Using "shutdown -h Now" Get Shutdown?

Dec 10, 2010

I have installed a cluster computer with 10 nodes . The manufacturer is HP . All nodes and the master node have redhat enterprise linux installed in them . When I shutdown the nodes from the master terminal using "shutdown -h now" they get shutdown . But they dont get completely turned off . This issue bothers me when the power supply is given , all nodes boot up simultaneously generating a huge heat .

Thing to note : When we shutdown our PC they get completely turned off . When the power supply is given , a press on the Power On button is required to boot the system. But , why does it not happpen in the case of cluster? Is there any other way of completely turning off the nodes from the master terminal ?

View 1 Replies View Related

Ubuntu :: Monitor Out Of Sync During Boot And Shutdown (also Shutdown Hang)?

Jun 30, 2010

when my pc boots and shuts down my monitor goes into 'input out of range' mode for a bit between the gui and the text only phases of boot/shutdown.is there a way to fix this? or where to start troubleshooting?also, when it shuts down it hangs after coming back to the text only part

View 4 Replies View Related

Fedora :: Shutdown Policy Triggered By Vncserver - Computer Refuses To Shutdown Normally

Feb 5, 2011

Recently I installed vncserver (tigervnc) on my desktop. Ever since my computer refuses to shutdown normally. At shutdown the following message pops up: Quote: System policy prevents stopping the system when other users are logged in Then I have to enter the root password to shutdown. If I stop vncserver before, the computer shuts down normally.

[Code]....

View 2 Replies View Related

Ubuntu :: Can't Shutdown Without Running Sudo Shutdown

Jun 20, 2010

I cant shutdown without running sudo shutdown. When I try to use the default gnome shut down it takes me back to the logon screen. Fresh install today and I've had the same problem on other installs.

View 9 Replies View Related

Ubuntu :: Randomly Pop Up The Shutdown Menu And Then Shutdown?

Sep 7, 2010

Ubuntu will randomly pop up the shutdown menu and then shutdown.It seems to happen when im in firefox and typing and it has been difficult to replicate. I dont think it is a temp issue since watch sensors shows temmp of 40-50C. Someimtes it happens every minute someimtes i can go 10min without it happening.

Dell Inspiron 1525
ubuntu 10.04 (only os on system)

View 3 Replies View Related

Ubuntu :: Shutdown Command Like Shutdown Button?

Dec 10, 2010

looking for a command that shutdown/reboot my ubuntu just same as process that happened when I press shutdown buttonIn fact I need to close all programs that are running and then PC shutdown (that happened when I press shutdown button).

View 9 Replies View Related

Ubuntu :: Not Allow Multiple Logins To The Shell?

May 20, 2010

Is there a way to prevent a user from being able to login more than once. Not a one-time login, but a single login. What I'm trying to do here is in moving our email system, an email user would login to this account, enter some password information, sync up their email, and have the passwords files removed, then log off. Next user can log in to the same account.

The reason for the single login is to protect the user's passwords.

View 1 Replies View Related

Ubuntu :: 10.04 Firefox Not Keeping Logins

May 20, 2010

i have 10.04 installed through wubi on my school hard drive and i notice that after i turn it off, then later put it in one of the many computers, firefox seems to forget i had things to keep me logged in, such as this forum.

now it could be that i use it on different computers(all have the same hardware), but its just odd if you ask me this doesn't get in the way of use but is happening.

Code:
Linux ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3
cookies are enabled

View 4 Replies View Related

General :: Locate Shutdown Log For Linux Shutdown (RHL 5.1-2.6.18-53.el5PAE)

Apr 22, 2010

I cannot locate shutdown log for Linux shutdown to check various activities carried out during shutdown. I can view Startup Log which is availble on console>Applications>System Tools>System Logs.

I have included Shutdown/Startup in dbora, so that Oracle 10gR2 Shutdown/Startup will be automated during OS Shutdown/Startup.

I want to check Shutdown log because Oracle Shutdown was not running, as from $ORACLE_HOME/shutdown.log contains no entries, where as startup log contains latest startup details.

That means here 2 issues are there. One, I want to locate OS Shutdown Log and the other being Why Oracle Shutdown not getting executed.

View 2 Replies View Related

Ubuntu :: Save Session For Future Logins?

Jan 16, 2010

I have a few questions related to the 'Save Session for Future Login' option you can check (and is checked by default) when you go to shutdown/restart/etc.

1) What exactly does checking this option and shutdown/restarting do?

2) Is there any way to have it unchecked by default?

3) Is there any way to completely remove the option?

View 1 Replies View Related

Ubuntu :: Eliminate Constant Password Logins?

Feb 19, 2011

Very often I have to leave my computer for a few minutes while in the process of downloading files, or just to get a cup of coffee, and when I come back, I have to re-enter my password to continue. This level of security is unnecessary since I am the only one here, and there is no danger of anyone ever messing with my PC. How can I eliminate these annoying login requests? One reason I am trying to get away form Windows is to have the computer do what I want, and not what other people think I want. I have been experimenting with various Linux OSs and several versions of Ubuntu, and this is an annoyance in every one I try.

View 6 Replies View Related

Ubuntu :: Display Progress Bar Using Cp (if Possible Mv Also)

May 16, 2010

A quick google search gave me a possible answer at this post: [URL] However, this isn't my question exactly. It sort of is, but the answer is not correct for me. I'm wondering how to show progress of a cp or mv command. The man page says -v should do it, but it seems it doesn't show any progress at all. Is it possible to show progress info with cp or mv? Or, is there a different command I could use that would show a progress bar. I know for example scp will show a progress bar, but that is for local-->remote or visa versa, but I'm trying to copy locally.

View 4 Replies View Related

Ubuntu :: Firefox 4 Progress Bar ?

May 11, 2011

Where is the progress bar in the new Firefox, or can it be got back if Mozilla removed it? If you have Mobile Broadband or dial-up this is a handy thing if you start looking at your watch waiting for a page to load...

View 1 Replies View Related

General :: Top Causes Of Slow Ssh Logins

Jul 22, 2010

there are 2 spots where I see a range from instantaneous to multi-second delays.Between issuing the ssh command and getting a login prompt and between entering the passphrase and having the shell load.Now, specifically I'm looking at ssh details only here. Obviously network latency, speed of the hardware and OSes involved, complex login scripts, etc can cause delays. For context I ssh to a vast multitude of linux distributions and some Solaris hosts using mostly Ubuntu, CentOS, and MacOS X as my client systems. Almost all of the time, the ssh server configuration is unchanged from the OS's default settings.

What ssh server configurations should I be interested in? Are there OS/kernel parameters that can be tuned? Login shell tricks? Etc?

View 6 Replies View Related

Server :: Securing Ssh Logins ?

Sep 15, 2010

We have a public server and it can be accessed from any where through ssh.

My question is my server should not allow anyone directly to login as root user. First he should login as normal user then he should switch to root user.

I also have another questions is there any specific linux command is there to end other users ssh session without rebooting the server.

View 2 Replies View Related

Ubuntu :: Disable Multiple Logins For A Single User?

Apr 5, 2011

I'm trying to disable multiple logins for a single user on Ubuntu 10.10 but I haven't been able to find a way to do this on this version

View 4 Replies View Related

Ubuntu :: GParted Progress Bar Stuck?

Aug 19, 2010

I removed my Ubuntu 10.04 partition from my hard disk with GParted because it didn't install properly and there were no solutions available. After I removed it, I set it up to extend my Vista partition into the unallocated space. It's been going for three hours so far (which I expected) but the progress bar is now stuck. The timer's stopped and everything; it's not increasing infinitely like when your internet cuts out when downloading something, it's just stopped. Here's a screenshot:[URL]..

I know to resist the allure of the Cancel button, but I don't really know what to do here. It's been sitting here for about half an hour with no sign of budging.

View 5 Replies View Related

Ubuntu :: Progress Bar In GIMP Is Not Affected

Dec 23, 2010

I've modified the Radiance theme and installed it, and everything looks wonderful except for one thing. Certain programs have ugly windows and progress bars, as if all window effects were disabled for those windows. The progress bar in GIMP is not affected.

View 2 Replies View Related

Ubuntu :: No Progress Meter During Installation

Apr 30, 2011

I am trying to install Ubuntu 11 with Wubi and the progress meter is missing. I cannot see if it's 30% done installed or 60% or whatever. It's annoying.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved