Sponsored Content
Top Forums Shell Programming and Scripting Pass root password through script Post 302470749 by shahdeo on Thursday 11th of November 2010 03:56:05 AM
Old 11-11-2010
MySQL Pass root password through script

I have several clients (over 120) connected to my server. I want to push some patch to all the client using a script which copies the file from the server to a specific path on the client and then installs it.

But for installation of the patch, it needs to be done thorough root login on client. Root password for all clients is 123456

How do I pass the password through the script.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

script to change root password

Hi All, I'm looking for a script to change root password for about 200 servers of both Solaris and Linux. I'm not very good at scripting, can anyone share a script if you already have one? :) (3 Replies)
Discussion started by: kvadivel80
3 Replies

2. Shell Programming and Scripting

how to change root password using shell script with standard password

Hi Friends. I am new to scripting now i want to change the root password using the script with standard password. which is the easy scripting to learn for the beginner, Thanks in advance. (2 Replies)
Discussion started by: kurva
2 Replies

3. Solaris

Solaris 8 - Asks for current root password when trying to change root password.

Hello All, I have several solaris boxes running Solaris 8. When changing root passwords on them, all will simply ask for the new root password to change and of course to re-type the new password. One of the systems however asks for the existing root password before it will display the new password... (8 Replies)
Discussion started by: tferrazz
8 Replies

4. Shell Programming and Scripting

Create script for change root password via SSH

HI I 'm new shall script and unix. I want to create script for change password root by ssh-keygen command . I have 50 servers and I want ot login ot the servers via ssh by type ones password and can login every machines.The script ssh-keygen must ot generate key every weekly than it send new... (2 Replies)
Discussion started by: pellnapook
2 Replies

5. Shell Programming and Scripting

How to pass decrypted password to script

Hi Everybody, I am trying to write a script (ksh) to connect to oracle db via sqlplus. As I do not want the password to be in plain text, I've tried to use java to encrypt and decrypt it but I am not sure how can I pass the decrypted password to the script. Pls advise. Below is what I would... (1 Reply)
Discussion started by: Nick1971
1 Replies

6. UNIX for Advanced & Expert Users

How to auto pass password in shell script !

Hi all, I have a simple script to check the CPU, Swap Memory and Hard Disk. But I can auto assign password in the script to automatic run it in crontab. Everytime when I run this script, it require to insert password like the message below : How can I solve this problem ? (2 Replies)
Discussion started by: cafecoc85
2 Replies

7. Shell Programming and Scripting

Pass the password to su in shell script

Hello, I am using below command but this is asking for tty c42dba {/home/oracle}: echo sersnp | su -c ggs standard in must be a tty Best regards, Vishal (4 Replies)
Discussion started by: admin_db
4 Replies

8. Red Hat

Root password expiry script

Hi Guys In red hat linux server is there a way to alert via email when the root password is about to expire ? As per security policy in our environment root password will expire in 90 days. Example : It would be better if we receive a email on 7th november stating that the root password... (1 Reply)
Discussion started by: newtoaixos
1 Replies

9. Shell Programming and Scripting

How to pass root password with su and command?

Hello, I have list of around 400 devices. I need to restart a service /etc/init.d/psap23.sh in all of them, but it should restart by root only. Those have some other kind of light Linux. There is no sudo package in that and we can't/shouldn't install. Direct root login is not allowed. I login... (5 Replies)
Discussion started by: solaris_1977
5 Replies

10. UNIX for Beginners Questions & Answers

Parsing Root password inside a C shell script

Hello everyone, I want to check how long a remote computer is running (e.g. with the command uptime or who - b) The check should be done during login from none root user by a script which is called from .cshrc. My script works fine if I login as root but I want that everybody get the information... (5 Replies)
Discussion started by: Nadielosabra
5 Replies
MANDOS-MONITOR(8)						   Mandos Manual						 MANDOS-MONITOR(8)

NAME
mandos-monitor - Text-based GUI to control the Mandos server. SYNOPSIS
mandos-monitor DESCRIPTION
mandos-monitor is an interactive program to monitor and control the operations of the Mandos server (see mandos(8)). PURPOSE
The purpose of this is to enable remote and unattended rebooting of client host computer with an encrypted root file system. See the section called "OVERVIEW" for details. OVERVIEW
This is part of the Mandos system for allowing computers to have encrypted root file systems and at the same time be capable of remote and/or unattended reboots. The computers run a small client program in the initial RAM disk environment which will communicate with a server over a network. All network communication is encrypted using TLS. The clients are identified by the server using an OpenPGP key; each client has one unique to it. The server sends the clients an encrypted password. The encrypted password is decrypted by the clients using the same OpenPGP key, and the password is then used to unlock the root file system, whereupon the computers can continue booting normally. This program is used to monitor and control the Mandos server. In particular, it can be used to approve Mandos clients which have been configured to require approval. It also shows all significant events reported by the Mandos server. KEYS
This program is used to monitor and control the Mandos server. In particular, it can be used to approve Mandos clients which have been configured to require approval. It also shows all significant events reported by the Mandos server. Table 1. Global Keys +---------------------------+-----------------------------+ |Keys | Function | +---------------------------+-----------------------------+ |q, Q | Quit | +---------------------------+-----------------------------+ |Ctrl-L | Redraw screen | +---------------------------+-----------------------------+ |?, F1 | Show help | +---------------------------+-----------------------------+ |l, D | Toggle log window | +---------------------------+-----------------------------+ |TAB | Switch window | +---------------------------+-----------------------------+ |w, i | Toggle log window line wrap | +---------------------------+-----------------------------+ |Up, Ctrl-P, k | Move up a line | +---------------------------+-----------------------------+ |Down, Ctrl-N, j | Move down a line | +---------------------------+-----------------------------+ |PageUp, Meta-V, b | Move up a page | +---------------------------+-----------------------------+ |PageDown, Ctrl-V, SPACE, f | Move down a page | +---------------------------+-----------------------------+ Table 2. Client List Keys +-------------+-------------------------------------------+ |Keys | Function | +-------------+-------------------------------------------+ |+ | Enable client | +-------------+-------------------------------------------+ |- | Disable client | +-------------+-------------------------------------------+ |a | Approve client | +-------------+-------------------------------------------+ |d | Deny client | +-------------+-------------------------------------------+ |R, _, Ctrl-K | Remove client | +-------------+-------------------------------------------+ |s | Start checker for client | +-------------+-------------------------------------------+ |S | Stop checker for client | +-------------+-------------------------------------------+ |C | Force a successful check for this client. | +-------------+-------------------------------------------+ BUGS
This program can currently only be used to monitor and control a Mandos server with the default D-Bus service name of "Mandos". EXAMPLE
This program takes no options: mandos-monitor SECURITY
This program must be permitted to access the Mandos server via the D-Bus interface. This normally requires the root user, but could be configured otherwise by reconfiguring the D-Bus server. SEE ALSO
intro(8mandos), mandos(8), mandos-ctl(8) COPYRIGHT
Copyright (C) 2010-2012 Teddy Hogeborn, Bjorn Pahlsson This manual page is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This manual page is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Mandos 1.5.5 2012-01-01 MANDOS-MONITOR(8)
All times are GMT -4. The time now is 01:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy