| [reply] |
I don't exactly need that you have specified. I don't want to prompt the user for a password. In my local system I run say two commands like "su hduser" which prompts me for a password and entering the password I get logged in as hduser. I just need to automate this thing using a script in my local system only so that I don't have to do this from the command line.
Thanks in advance any help would be of great help.
| [reply] |
You can always configure /etc/sudoers to not require passwords -- either for all commands or for a list of specified commands.
| [reply] |
Amarendu,
What is the question?
Do you need to encrypt the password?
Do you need to save it in a safe place, etc??
Thank you
"Well done is better than well said." - Benjamin Franklin
| [reply] |
I have a user named "hduser" and the password of the user is say "xyz123". Now I need a automated script for it so that I can get logged in as hduser without prompting for it's password. For example I have written a perl script as follows:
#!/usr/bin/perl
system ("su hduser && <xyz123>");
I need to set the user password for hduser.
Please help urgently. Thanks a lot in advance.
| [reply] |
| [reply] |
| [reply] |
Use SSH with digital certificates for password-free login. Be sure that each computer has its own unique certificate. It's also a good idea to password-protect (encrypt...) each certificate and to use an ssh-agent to store those keys. Tighten down the scenario as tightly as you can ... if you know IP-addresses, lock the connection to them. | [reply] |