10-27-2005
Quote:
Originally Posted by ispepalocacoc
Look into using "sudo". You'll have to configure it properly, and you'll have to put in your password once, but it remembers it for a time, so all subsequent sudo calls won't require the password.
This and I believe expect would also be a solution to your issue. However I wouldn't consider it as a very secure one as you'll have to keep a password in a file somewhere.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
ftp -i -n <<HERE
open $IPADD
user $USRNAME $PASS
cd /
get $FNAME
close
quit
HERE
Hi all the above script i used for ftp. How to modify same for sftp?
thanks in advance (10 Replies)
Discussion started by: bullz26
10 Replies
2. Shell Programming and Scripting
Hi folks
I am new to shellscripting and I try to automate & guify some jobs.
Suppose I have a variable the stores a passwd and an application like "gpg" or "zip" to run from withn the script.
how do I pass that passwd (the content of the variable) to the application being called?
eg.
... (4 Replies)
Discussion started by: latenite
4 Replies
3. Shell Programming and Scripting
I have created a shell script to telnet remote machine. Here is the problem I am not able to pass the login username and password to the telnet session. I have searched forum and got few other methods to achieve this. But I need to know what's wrong in the below script.
username="root"... (2 Replies)
Discussion started by: uxpassion
2 Replies
4. Shell Programming and Scripting
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.... (7 Replies)
Discussion started by: shahdeo
7 Replies
5. Shell Programming and Scripting
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. Shell Programming and Scripting
Dear all
Does anybody know how to pass the password as input parameter to scp or rsync in unix scripts?
I have tried echo <password> | scp filename username@<ip address>:/filepath/ .
But it does not work.
BTW, I dont want to setup ssh trust between servers in this adhoc task.
Regards,... (2 Replies)
Discussion started by: eldonlck
2 Replies
7. UNIX for Advanced & Expert Users
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
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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 Advanced & Expert Users
Using below below command i'm able to connect or authenticate server, In below command password contains special characters
sshpass -v -p 'ASJBA%hs76)#' ssh -q -o ConnectTimeout=5 hostname
But If I pass password as a variable I'm not able to connect or authenticate server, can you please help... (1 Reply)
Discussion started by: sam@sam
1 Replies
LEARN ABOUT NETBSD
skeyinit
SKEYINIT(1) BSD General Commands Manual SKEYINIT(1)
NAME
skeyinit -- change password or add user to S/Key authentication system
SYNOPSIS
skeyinit [-sxz] [-k passphrase] [-n count] [-p password] [-t hash] [user]
DESCRIPTION
skeyinit initializes the system so you can use S/Key one-time passwords to login. The program will ask you to enter a secret pass phrase;
enter a phrase of several words in response. After the S/Key database has been updated you can login using either your regular password or
using S/Key one-time passwords.
skeyinit requires you to type a secret password, so it should be used only on a secure terminal.
OPTIONS
-k passphrase
Use pass phrase passphrase instead of asking for one to be entered.
-n count
Start the skey(1) sequence at count (default is 100).
-p password
Use password password instead of asking for one to be entered.
-s allows the user to set the seed and count for complete control of the parameters. To do this run skeyinit in one window and put in
your count and seed; then run skey(1) in another window to generate the correct 6 english words for that count and seed. You can
then ``cut-and-paste'' or type the words into the skeyinit window.
-t hash
Selects the hash algorithm to use. Available choices are md4 (the default), md5, or sha1.
-x Displays one-time password in hexadecimal instead of ASCII.
-z Allows the user to zero their S/Key entry.
user The username to be changed/added. By default the current user is operated on, only root may change other user's entries.
FILES
/etc/skeykeys database of information for the S/Key system.
SEE ALSO
skey(1), skeyaudit(1), skeyinfo(1)
AUTHORS
Phil Karn
Neil M. Haller
John S. Walden
Scott Chasin
BSD
September 19, 2005 BSD