Sponsored Content
Full Discussion: Server list in PassMass
Top Forums Shell Programming and Scripting Server list in PassMass Post 67291 by tanku on Tuesday 22nd of March 2005 09:20:39 AM
Old 03-22-2005
Quote:
Originally Posted by buddy_lee
Hi there-

I'm using passmass to change my user passwords on a few remote hosts. I'm going to be using it on additional systems in the near future, and as such I'm going to have to expand my server list within passmass. Right now I simply use the standard passmass format of "passmass -user john server1 server 2 etc". I currently use it on 10 servers.

Starting next week I am going to be using it on over 200 servers. I can't use the standard paramters to start the script very easily, so I was wondering if anyone has used passmass with an external server list. That is, have a text file of servernames and have passmass work its way through it. Anyone done that? Is it possible?

If anyone has any ideas on how to get this done I would greatly appreciate the help.

Thanks.
Hi.

i have no idea what is passmass but you could create a file with all your servers and try this:

awk '{print "passmass -user john " $0 }' serversfile | csh

if others have better idea please share
 

9 More Discussions You Might Find Interesting

1. Cybersecurity

List of HTTP/FTP-clients on a server

The other day, a friend of mine had his Linux webserver compromised because he was running a vulnerable PHP-script. The "hacker" had used a malformed URL to include a wget-command to fetch some stuff off the net and install it in /dev/shm where it ran undetected. Fortunately, the webserver ran as a... (2 Replies)
Discussion started by: indo1144
2 Replies

2. Shell Programming and Scripting

To get the dir list of a remote server

Dear all; I am new to UNIX scripting and I want to download remote server's dir listing every hour, to check whether it is updating. How can I do this. can I use ftp command to down load this dir listing. Pls help me in this regards. tks (1 Reply)
Discussion started by: HMS.Chandrasiri
1 Replies

3. Shell Programming and Scripting

expect-5.43 and "passmass"

Hello, I am starting to use "expect-5.43" on Solaris 10 and the sample expect file called "passmass". "passmass" allows you to update the root password on many servers at once. The script runs like "./passmass server1 server2 server3, etc. I would rather run it like "./passmass serversfile"... (0 Replies)
Discussion started by: stephanpitts
0 Replies

4. Shell Programming and Scripting

Expect passmass

Hello I'm trying out expect on Solaris. I'm trying to use passmass to change my password on 2 boxes and i get the following error "password not changed on devn2 - bad password or login" I'm 100% positive i'm entering the correct login and password Help!! (0 Replies)
Discussion started by: runyar
0 Replies

5. Shell Programming and Scripting

Passmass

I just made 8 different users on 54 unix boxes. I now need to set there password. I have installed passmass and tweaked the script alittle. But when I run it and it logs into the remote machine our machines ask for a userid for loggin purposes due to being logged in as root. This can be blank but I... (1 Reply)
Discussion started by: Gibby13
1 Replies

6. Shell Programming and Scripting

list files on a server ftp

Hello, I would want to list files of an server FTP with the path of the file... i try "ls -R" but ftp don't accept this command... Is it possible with curl command ??? Regards. (5 Replies)
Discussion started by: protocomm
5 Replies

7. UNIX for Dummies Questions & Answers

Copying a list of files from one 'server' to another?

I have two servers. I would like to copy some files from one directory on server A into the same directory on server B. Its not all the files in in the directory, just some of them. Is there a way to make a file list in a txt file and then somehow copy all the files in that list in one go to... (6 Replies)
Discussion started by: Sepia
6 Replies

8. UNIX for Dummies Questions & Answers

List commands executed on a server

Hi All, how to list all the commands executed by users on a linux server.... I dont have access to others .bash_history. and i am not root user.. Please help.. Thanks in advance.. (6 Replies)
Discussion started by: nanz143
6 Replies

9. UNIX for Advanced & Expert Users

List all certificates on a server

Dear All, I am planning to find the list of certificates(WEBshpere/MQ) on a servers. My certificates are either stored in (.jks) / (.pem) / (.cer) . But some of the certificates are stored without these file formats. I tried using find command but unless I give the file name its difficult... (6 Replies)
Discussion started by: sidh_arth85
6 Replies
RLOGIN(1C)																RLOGIN(1C)

NAME
rlogin - remote login SYNOPSIS
rlogin rhost [ -ec ] [ -8 ] [ -L ] [ -l username ] rhost [ -ec ] [ -8 ] [ -L ] [ -l username ] DESCRIPTION
Rlogin connects your terminal on the current local host system lhost to the remote host system rhost. Each host has a file /etc/hosts.equiv which contains a list of rhost's with which it shares account names. (The host names must be the standard names as described in rsh(1C).) When you rlogin as the same user on an equivalent host, you don't need to give a password. Each user may also have a private equivalence list in a file .rhosts in his login directory. Each line in this file should contain an rhost and a username separated by a space, giving additional cases where logins without passwords are to be permitted. If the originating user is not equivalent to the remote user, then a login and password will be prompted for on the remote machine as in login(1). To avoid some security problems, the .rhosts file must be owned by either the remote user or root. The remote terminal type is the same as your local terminal type (as given in your environment TERM variable). The terminal or window size is also copied to the remote system if the server supports the option, and changes in size are reflected as well. All echoing takes place at the remote site, so that (except for delays) the rlogin is transparent. Flow control via ^S and ^Q and flushing of input and output on interrupts are handled properly. The optional argument -8 allows an eight-bit input data path at all times; otherwise parity bits are stripped except when the remote side's stop and start characters are other than ^S/^Q. The argument -L allows the rlogin session to be run in litout mode. A line of the form ``~.'' disconnects from the remote host, where ``~'' is the escape character. Similarly, the line ``~^Z'' (where ^Z, control-Z, is the suspend character) will suspend the rlogin session. Substitution of the delayed-suspend character (normally ^Y) for the suspend character suspends the send portion of the rlogin, but allows output from the remote system. A different escape character may be specified by the -e option. There is no space separating this option flag and the argument character. SEE ALSO
rsh(1C) FILES
/usr/hosts/* for rhost version of the command BUGS
More of the environment should be propagated. 4.2 Berkeley Distribution May 12, 1986 RLOGIN(1C)
All times are GMT -4. The time now is 06:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy