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
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
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
pqlist
PQLIST(1) pqlist PQLIST(1)
NAME
pqlist - List available NetWare print queues
SYNOPSIS
pqlist [ -h ] [ -S server ] [ -U user name ] [ -P password
| -n ] [ -C ] [ pattern ]
DESCRIPTION
pqlist lists all the NetWare print queues available to you on some server. If you are already connected to some server, this one is used.
If pqlist does not print to a tty, the decorative header line is not printed, so that you can count the printing queue available on your
server by doing
pqlist -S server | wc -l
pqlist looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of .nwclient MUST be 600, for security reasons.
OPTIONS
pattern
pattern is used to list only selected queues. You can use wildcards in the pattern, but you have to be careful to prevent shell inter-
pretation of wildcards like '*'.
-h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U user name
If the user name your NetWare administrator gave to you differs from your unix user-id, you should use -U to tell the server about your
NetWare user name.
-P password
You may want to give the password required by the server on the command line. You should be careful about using passwords in scripts.
-n
-n should be given to mount shares which do not require a password to log in.
If neither -n nor -P are given, pqlist prompts for a password.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
SEE ALSO
nwclient(5), nprint(1), slist(1), ncpmount(8), ncpumount(8)
CREDITS
pqlist was written by Volker Lendecke (lendecke@math.uni-goettingen.de)
pqlist 01/10/1996 PQLIST(1)