Programming :: Shutdown Multiple Computers Via SSH (Try Different Passwords)

Oct 1, 2010

I'm trying to write a mass reboot script in the event of a power outage (servers go to UPS for some 15 minutes or so and shutdown uncleanly). What I have is a set of 6 common passwords which will be prompted for per ssh connection, is there any way I can cycle through this password list

Code:
#below is an example of how this is constructed, IP's are used instead of hostnames due to the possibility of a DNS server being offline.
SERVERSRM1="1 2 3"
SERVERSRM2="110 120 130"
For i in $SERVERSRM1; do ssh -n root@192.168.0.$i "hostname && shutdown -y -i5 -g0"; done;'
for i in $SERVERSRM2; do ssh -n root@192.168.0.$i "hostname && shutdown -y -i5 -g0"; done;'
Each time the code is executed I'm prompted for a password (it's always one of 6 passwords). It would be quicker to have the passwords be cycled through.

I realise this is basic code at the moment but it will eventually allow for a specific set of computers to be shut down based on what power supply they're using. Authorized keys not really an option given the scale of computers (some 300 or so).

View 10 Replies


ADVERTISEMENT

Ubuntu Security :: Multiple Passwords \ Possible To Have Two Passwords For One User Account In 9.10?

Jan 7, 2010

I wonder if it is possible to have two passwords for one user account in 9.10. I have a long login password (5 words about 45 characters with spaces caps). I would like to set a shorter password for Authentication, sudo, etc. While retaining the original for logging in.In short:Have long password to login to computer.Have short password for everything after login.

View 6 Replies View Related

Programming :: Initializing A Branch In One Launchpad Project On Multiple Computers?

Mar 25, 2010

initializing a branch in one Launchpad project on multiple computers, or even upon reinstalling an OS? I know I sure haven't.

View 1 Replies View Related

Fedora :: LDAP - Centralize Login And Passwords For All Home Computers

Jan 25, 2010

While I've been using Linux for a little while now, I have only recently been getting into setting up and using a server at home (in part because until recently I only had ONE computer at home). I have heard of LDAP and OpenLDAP, but I am not sure if this is the best tool to do the following. Centralize logins and passwords for all of the computers at home, so I only have to change/manage one place. Since I keep installing Linux Distros it would be nice if I didn't have to add each person, individually each time.

Provide single sign-on authentication for the user so when they go to the Samba server they don't have to do another login, but they are limited in what they can see. Basically I don't want the kids being able to see *MY* files
- Works with Linux (various) and Windows (Windows 7 more than XP)
- Works with desktop and laptop
- Be able to, possibly, pass this authentication to the web server so likewise do not need to log into the web server after logging into the computer.
- (optional) be able to set up a script to run automatically to either map network drives or mount samba directories based on the user being logged in (smb://user/<username>) and/or backup the system.

I say optional because if it can that is great, but if it cannot then it isn't a show-stopper. Like I said, I am very new to servers and networking and do not know where to start regarding this. Right now I have a basic (too open) file server and a web server just beginning to be developed (working on Drupal). Not only do I need to figure out what/where to research about the server settings but also setting up the client-side of things.

View 3 Replies View Related

OpenSUSE Install :: User Locked Out After Multiple Passwords?

Dec 5, 2009

I am having a problem with some users who get locked out after more than 3 failed attempts at login. This is exactly what I want to see - they will eventually remember those stronger passwords (maybe?) - but how do I re-enable their access? I haven't tried this on a live box but I can easily recreate the situation via vnc to the server in question and I assume the result would be the same. I like the policy that leads to this but I do need to let them back in - eventually. Where is the blacklist kept and how do I edit/reset it?

View 3 Replies View Related

General :: Allowing Multiple Passwords Attached To One Account?

Jun 14, 2010

Is it possible to have more than one password simultaneously attached to a login account in Linux?I'd like to be able to add a temporarily-authorized user to an account on my web server, but don't want to have to change the login afterwards.Even cooler would be if this could be done with a timer of some kind so the temporary password would auto-die after, say, 24 hours.

View 1 Replies View Related

Ubuntu Servers :: 10.10 - Cannot Save Multiple Users And Passwords With Htdigest

Dec 12, 2010

On other editions of ubuntu server I had no problem saving multiple users and passwords with htdigest but now it seems it is only possible to save one user and password.
Code:
sudo htdigest -c /etc/apache2/passwords directory user
When I add a second username and password for the same directory it overwrites the first.

View 1 Replies View Related

Ubuntu Networking :: Multiple User Names / Passwords To Access Same Shared Directory?

Mar 18, 2010

I have an ubuntu server set up in which i would like my shared media directory to be accessable with multiple usernames / passwords because I use my admisistrator username and password for samba as well, but I do not want to give out that password to all clients in my house. And, I would like to have write permissions but keep other users to read only. Is this possible or do i need to just make one separate username / password for samba sharing?

View 1 Replies View Related

Hardware :: Combine Multiple Computers Into 1 Box?

Dec 28, 2010

I have a very old machine running Linux (Fedora 12) with 2 harddrives and a DVD RW. I also have a newer Dell computer running XP. I would like to take the 2 harddrives and DVD RW from the older machine and put them into the available slots in the Dell computer and configure it for dual booting.

View 2 Replies View Related

Server :: SSH On Multiple Computers In Same Network

Dec 29, 2010

I am setting up my home network. Currently, I have one computer (Munchen) which I have set in my router to receive SSH requests. This works just fine; I can SSH into that box from anywhere. I just put together a new computer, which I want to be a file repository, my ftp server, my http server, etc. What I would like is to be able to SSH into that machine from anywhere, then SSH into the other computers on that network from there.

Here is where I really don't understand the concept of what is going on. I can SSH past the router into one computer just fine either from anywhere (that makes sense to me). I can SSH from my new computer (Chemnitz) into Munchen (which is where the router points to and is running sshd) by using its local IP address, but I can't go from Munchen to Chemnitz (even though the server is running and the firewall should be allowing the connection). [URL]

Details of the system setup are below.
Munchen (receives all port 22 requests now)
Ubuntu 10.04
Chemnitz (I want to receive all port 22 requests and SSH into other computers on the network from it. Ultimately it will be a file sharing box, hosting a webpage, running an ftp server, etc.)
Fedora 14

View 8 Replies View Related

Ubuntu Installation :: Multiple Admin Passwords - Opration Requires Root - Administrative - Privileges

Jan 10, 2011

I downloaded a driver for my printer today and I opened it in the terminal. Then a window popped up saying "This opporation requires root (administrative) privileges. Please enter the administrative password below:" I typed in the same password that I use when authorizing the installation of programs from the Ubuntu Software Center and I tried it multiple times. Each time, it rejects the password. I even tried downloading something else from the software center, just to make sure the password was correct, but the system had no problem with the password when downloading from the software center. So, is my software center password different from my administrator password?

View 9 Replies View Related

Ubuntu :: Duplicating GUI Settings Over Multiple Computers?

Oct 12, 2010

I got my desktop all set up the way I like it, and it took a lot of tweaking and I can't even remember where I set all of the settings.

Is there a hidden file (or folder) or something like that in my home folder I can copy over to another Ubuntu machine to duplicate it?

I'm looking at settings like theme, colors, menu transparecies, etc.

View 1 Replies View Related

Ubuntu :: Connect Multiple Computers To Wireless USB Dongle?

May 27, 2010

I recently purchased a wireless USB dongle. It works great. I am looking to connect multiple computers to that USB dongle. I wanted to know if anyone out there knows if it is possible to link multiple USB cables together like a reverse splitter.

View 7 Replies View Related

Ubuntu :: Installing Printer Drivers On Multiple Computers?

Dec 5, 2010

I'm a very inexperienced Linux user, just getting started, so bear with me. I was able install the printer drivers for a Brother network laser printer (HL-5370DW) and would like to install the drivers on a few other computers on my small home network. Is there a way to automate this process by pushing them out to the other computers, or should I just manually install them? It wasn't difficult, just wondering if there is a slick way to do this.

View 2 Replies View Related

Ubuntu Multimedia :: Pulseaudio Server On Multiple Computers In Local Network?

Dec 5, 2010

I will cut to the chase. I am running three ubuntu computers on my local network:my desktop which runs ethernet, and two laptops which run wireless on the same network, and all from the same router. For purpose of this thread, I am concentrating on this one issue with pulse(assuming its pulse doing this). When I have two computers running at the same time, or even all three, I can hear bursts of sound coming from the other computer, not all the time, but consistently. I don't know what is causing this. I've searched hi and low in all ubuntu pulse audio forums and those mentioning pulseaudio and I have not seen this issue posted anywhere. Most threads deal with issues of not being able to get pulse to recognise audio from one computer to the other...mine is just the opposite...I'M TRYING TO STOP THIS FROM HAPPENING!...... If I'm listening to my music on my desktop, I don't want to hear what my son is playing on his laptop...and vice versa. all the computers at my home are running lucid lynx, latest updates and latest approved kernel as of the date of this post. 2.6.32-26-generic.

View 2 Replies View Related

Ubuntu Servers :: Connect Multiple Computers Running & Run Software From One Computer From The Other?

Jan 15, 2011

This may sound stupid but I've got to ask. Can I connect multiple computers running Ubuntu & run software from one computer from the other? I know how to connect using SSH & to copy files back & forth but I don't know how or if I can share programs.

View 7 Replies View Related

Ubuntu Servers :: Provide Internet Access To Multiple Computers Using Only A Hub And 1 Ethernet Port

Mar 18, 2010

Ever need to provide access to multiple PC's and did not have a router only a hub. Maybe this isn't original thinking, but then again maybe you didn't think of doing it this way (which i am sure there are many ways to do it) So I have 2 Ubuntu Servers, 1 Windows Box and a Hub - All 3 with internet access off of single ip and single Ethernet port.

While searching for a backup method today I came across Clonezilla. I was wondering if this was the right thing for me and since I needed to backup my roommates PC for a reformat and install of Windows I decided I would give it a try, but only if it would work. I didn't want the hassle of going into the main part of the house and finding out what cord was what as there is a cable modem connected into a switch (4 static IP's with internet) and one port of the switch hooked to a router) Anyways, didn't work he was on the router I was on the switch)

But this got me thinking. When I setup my server to do this, during one of the setup scripts it said it was setting up Internet access for client machines and that it was assigning them IP addresses threw a DHCP server that it had installed.

So, I dug up the hub connected the internet cable to hub up link and Server 1 on port 1 Server 2 on port 2 and Windows on port 3 The main server gets the internet provided IP address and routes it to the hub via a virtual interface. Server 2 is configured for DHCP and the windows box, It was set to get info automatically but it didn't fill the DNS info so I had to manually do that (just a heads up) I decided to use OpenDNS Servers (208.67.222.222 & 208.67.220.220) but im sure putting in the gateway IP address would have worked too.

So, by now if you need this I am sure you are excited and want to get to it. Like i said there are probably other ways of doing it, ways that don't involve you installing clonezilla and DRBL, maybe even just DRBL is needed, maybe one of them installed whats needed as a dependency- all I know is it works, if you know - elaborate so people know, but hey- this way not only do you have internet access on all PC's you can deploy custom images to them as well.

View 1 Replies View Related

Ubuntu Servers :: Setup A Home Server For Backing Up And Storing The Files On Multiple (Windows) Computers?

Feb 3, 2010

I'm looking to setup a home server for the purpose of backing up and storing the files on our multiple (Windows) computers. What kind of server should I set up? Samba? Lamp?

View 5 Replies View Related

Programming :: BASH Scripting: Hide Plain Text Passwords

Jun 15, 2010

I was wondering if there is way to hide passwords in bash scripts. For example: I have to write a script to export a full ldap structure, and I'm using the ldapsearch -y passwordfile, where password file is a plain text file that contains the password. Is there a way to hide the password from that file?

I was thinking to remove the r attribute from the file and before the script is lunched to put the attribute back, but is not a good solution, the same with immutable attribute.

View 7 Replies View Related

Ubuntu Networking :: Multiple Ip Download - Share The Download Between The Computers To Get The Cumulative Speed?

Jan 8, 2011

I am at a university where my bandwidth is severely capped. I can start several other computers near me and download at the limited speed simultaneously. Is there any way for me to share the download between the computers to get the cumulative speed?

View 1 Replies View Related

Programming :: Synchronize Sound Cards On Different Computers?

Dec 27, 2010

I've written a "C" program which transmits audio to a number of computers over a TCP LAN connection. I'm using ALSA, the preemptive kernel, and pthread. After running for 30 minutes or so the slight variation in sampling rates (~+-.01%) among the computers accumulates and manifests as a noticeable differential delay in the sound from the speakers. I know how to detect the variation and would like to dynamically compensate for it by individually varying the sampling rate (ever so slightly) of each playback device to oppose the variation.

Does anybody out there in Linux Land know how to dynamically vary the playback sample rate? I've tried using snd_pcm_hw_params_set_rate() and snd_pcm_hw_params_set_rate() followed by snd_pcm_hw_params() to no avail. They don't seem to work when playback is running.

View 8 Replies View Related

OpenSUSE Network :: Connecting Two Computers On LAN \ Both Computers Are Connected To A Switch With Cables?

Jan 31, 2011

im trying to connect two computers on lan.One computer has: VMWare Workstation and has Opensuse 11.3 mounted in it.The other computer has: VMWare Player and has Opensuse 11.3 mounted in it.Both computers are connected to a switch with cables.I have followed this guide in both computers:Depanati singuri calculatorul!: Opensuse 11.3 - configure local networkin order to setup a network.In one computer, if i go to: Computer---Network---Network folder, i only see one machine. When in fact i could see both of them right

View 9 Replies View Related

Programming :: Programming To Multiple Video Cards

Jun 24, 2009

I've browsed the internet, but haven't found a satisfying answer. Hope this forum can help me in the right direction.I'm exploring the possibilities of creating a program that manipulates (writes to) two different video cards.I program in C and hope to avoid high level libraries like Xlib to keep the mem footprint as low and the performance as high as possible. Windowing is not important no desktop environment will be used. Be able to write two pixels (one to each screen) to would do.

How would I go about?To give an idea of the solution I'm looking for:One screen will show thumbnails of images on the hard drive. Clicking an thumbnail on display A will show the selection full screen on display B. On a laptop; preferably thumbnails on the laptop screen and the selected image on the external monitor.Is this possible with just low-level libs or do I need X or some third-party software to make life easy?

View 14 Replies View Related

Programming :: Shutdown Two Nodes With Dependencies?

Mar 16, 2010

I have a cluster script (CentOS 5.4) and I need a UPS for a shutdown. It should look like this ... The first node must wait until the second node has completed several actions and has been completely shut down. So I need a script with a shutdown wait until the other node is ... I was thinking of a test using ping. Alternatively, I would also have an IPMI interface. However, the "pause" may last a maximum of 10 minutes ... Then the wait must be ended.

View 10 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

Programming :: How To Properly Clean Up On Asynchronous Or Sudden Shutdown

Jun 6, 2010

I have an user space application that performs file I/O operations, when a SIGKILL is captured, some routines are done first to ensure that all I/O operations are completed before rebooting the application or system. My question is, this won't work if the power button is pressed or the power supply is disconnected, so there can be incomplete I/O operation or corrupted data written into the file, so is there a way to prevent data corruption or at least complete any ongoing operation when this scenario happens? Assuming there is at most 1 second before the power really went out, can I/O be still completed?' I'm running the application on a busybox 2.6.14 kernel on an embedded system board.

View 1 Replies View Related

Programming :: Create A Shell Script That Would Automatically Backup And Shutdown?

Oct 14, 2010

I would like to develop a shell script that would automatically run a backup program and then shutdown the computers, but I do not know the first thing about script development or even writing scripting.

View 2 Replies View Related

Programming :: START And STOP Oracle Automatically On System Startup And Shutdown?

Aug 17, 2009

I have installed Oracle 11g on 5.3. Now, I am trying to START and STOP oracle automatically on system startup and shutdown. I am following this link To have this effect, I have created /etc/init.d/dbora

Code:

#!/bin/sh
# chkconfig: 345 99 10
ORA_HOME=/oracle/app/oracle/product/11.1.0/db_1

[code]....

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 :: 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







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