question pn Password!!


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting question pn Password!!
# 1  
Old 09-26-2006
question pn Password!!

Hi Unix gurus,
I have one question for you on passowrd:

I have one script which takes care of configuring SSH on some 200 servers. But for 200 times it prompts for password and always I enter the same password for all the 200 servers. I want to know if i can store the password in a variable or a file and whenever system prompts for the password then it must take the password value from the variable or file so that I can avoid typing the password. Please help and advice.

Warm Regards,
RK
# 2  
Old 09-26-2006
Quote:
Originally Posted by vangalli
I want to know if i can store the password in a variable or a file and whenever system prompts for the password then it must take the password value from the variable or file so that I can avoid typing the password
Yes, that is possible.
# 3  
Old 09-27-2006
hi yogesh!!

could you please give me the syntax for that........... i need it very urgent........
# 4  
Old 09-27-2006
Quote:
Originally Posted by vangalli
could you please give me the syntax for that........... i need it very urgent........
That depends on how and where you wish to give password. For example, to the passwd command, to ftp, to telnet, to ssh, etc.

You may have to use Expect in some cases.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Password sent via reset password email is 'weak' and won't allow me to change my password

I was unable to login and so used the "Forgotten Password' process. I was sent a NEWLY-PROVIDED password and a link through which my password could be changed. The NEWLY-PROVIDED password allowed me to login. Following the provided link I attempted to update my password to one of my own... (1 Reply)
Discussion started by: Rich Marton
1 Replies

2. UNIX for Dummies Questions & Answers

password protect a CSV file: better solution than ZIP password?

Hi We send *.csv with sensitive data to our customers. Our customers open those files with Excel. A new requirement is that we password protect those CSV files. I thought to pack them with ZIP and assign a password to the archive. But Solaris 10 can't encrypt ZIP files. $ zip -P... (12 Replies)
Discussion started by: slashdotweenie
12 Replies

3. Red Hat

Security Question: Lock after invalid login, Session Lock and Required Minimum Password Length

Hello all, If anyone has time, I have a few questions: How do I do the following in Linux. We are using Red Hat and Oracle Enterprise Linux, which is based on Red Hat too. 1. How to lock the account after a few (like 3) invalid password attempts? 2. How do you lock a screen after 30... (1 Reply)
Discussion started by: nstarz
1 Replies

4. Red Hat

max age password question

Hi All, I got a definition on /etc/login.defs PASS_MAX_DAYS 41 and on /etc/shadow, most of the user id fifth column (max age) is 40. Is that different policy or not? If it is the same policy, then the above policy don't match, right. Thanks for any comment you may add. Cheers,... (2 Replies)
Discussion started by: itik
2 Replies

5. Solaris

SSH Password-less login fails on password expiry.

Hi Gurus I have a few Sol 5.9 servers and i have enabled password less authentication between them for my user ID. Often i have found that when my password has expired,the login fails. Resetting my password reenables the keys. Do i need to do something to avoid this scenario or is this... (2 Replies)
Discussion started by: Renjesh
2 Replies

6. 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

7. UNIX for Advanced & Expert Users

password verification verify password of a user for only first 8 characters

Helo , I m using linux pam library for user and its password authentication. I m creating new user and giving its password.I m giving password of 10 characters.now when I login in as that newly created user its ask me $ su - ram Password: You are required to change your password immediately... (12 Replies)
Discussion started by: amitpansuria
12 Replies

8. AIX

Question about ssh without password

The sshd_config file shows as following: #RSAAuthentication yes #PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys It looks like user cannot ssh to this server without password. However, I can do it from other AIX server to this server. So, how to know if this server... (2 Replies)
Discussion started by: rainbow_bean
2 Replies

9. UNIX for Dummies Questions & Answers

Change password by pushing encrypted password to systems

I'm tasked to change a user's password on multiple Linux systems (RH v3). I though copying the encrypted password from one Linux /etc/shadow file to another would work but I was wrong. The long term solution is to establish an openLDAP Directory service, but for now I'm stuck with a manual... (1 Reply)
Discussion started by: benq70
1 Replies
Login or Register to Ask a Question