10-28-2009
if you can't use keys you might want to try "expect".
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am a new guy in this forum, I am trying to do the following stuff
and want some inputs
I am doing this manually, by using the scp command to copy file from
a remote unix machine and entering the password at the password prompt.
Like this,
scp -p user@machine.com:/tmp/test.sh .... (1 Reply)
Discussion started by: drivewedge
1 Replies
2. Shell Programming and Scripting
Hi
Most of the shell scripts I am dealing with have to connect to oracle database . The username password is stored in a environment file which sets the variables for username and password . Set user id do not work on AIX so users who will execute these scripts need to have read or execute... (5 Replies)
Discussion started by: clifford
5 Replies
3. Shell Programming and Scripting
Hello everybody! First time posting here:)
Right, I am trying to pass arguments in my shell scripts using $1, $2 and $3 etc using if else statement........
This is my shell script which is based on serching the google website
#!/bin/sh
wget -t1 -E -e robots=off - -awGet.log -T 200 -H... (47 Replies)
Discussion started by: kev_1234
47 Replies
4. Shell Programming and Scripting
I have a requirement, I need to run a command at remote system using a ssh. Is there any way we can pass the username and password in shell script to the ssh command as we did it in one of the shell script for FTP.
ftp -n $i <<!EOF >>
user Username $PASSWD
cd /home/scripts
... (5 Replies)
Discussion started by: Muktesh
5 Replies
5. Shell Programming and Scripting
ssh/sftp login by passing password , is it possible.Don't want to expect. (1 Reply)
Discussion started by: dinjo_jo
1 Replies
6. UNIX for Dummies Questions & Answers
hi All,
i m trying to pass a user choice paramter from unix to sqlplus connect command
here i want the user to enter the username and password he wants to connect in sql plus through read in unix and then automatically connect to that instance.
sqlplus -s $1/$2
where $ 1 and $2 will b... (2 Replies)
Discussion started by: Jcpratap
2 Replies
7. UNIX for Advanced & Expert Users
I've been using various versions of UNIX and Linux since 1993, and I've never run across one that showed your password as you type it in when you log in, or one that stored passwords in plain text rather than encrypted. I'm writing a script for work for a security audit, and two of the... (5 Replies)
Discussion started by: Anne Neville
5 Replies
8. Shell Programming and Scripting
So this is something I've been wondering how to do for a while. Suppose I have two shell scripts a.sh and b.sh
script a does some function and outputs to a varable $x . I would then like to take $x into the second function, b.sh, and do a function on it and create some output. So how do you pass... (3 Replies)
Discussion started by: viored
3 Replies
9. Shell Programming and Scripting
Hi All,
I am trying to create a script with the help of while and expect loop to do the following:
1. script will pick up the servers one by one from server_list file and will do ssh to it.
2. for each server it will change the password of user test1.
3. script should also provide logs for... (1 Reply)
Discussion started by: omkar.jadhav
1 Replies
10. Shell Programming and Scripting
Hello all,
for security reasons my compagny imposes that my script be launch remotly via ssh under the users login shell.
So serverA launches the ssh command to serverB which has a local user with my script as a login shell.
Local script works like a charm on his own.
serverB$ grep... (20 Replies)
Discussion started by: maverick72
20 Replies
LEARN ABOUT OPENSOLARIS
k5srvutil
k5srvutil(1M) System Administration Commands k5srvutil(1M)
NAME
k5srvutil - host key table (keytab) manipulation utility
SYNOPSIS
/usr/sbin/k5srvutil operation [-ik] [-f filename]
DESCRIPTION
The k5srvutil command allows a system manager to list or change keys currently in his keytab or to add new keys to the keytab.
The operand operation must be one of the following:
list Lists the keys in a keytab, showing version number and principal name.
change Changes all the keys in the keytab to new randomly-generated keys, updating the keys in the Kerberos server's database to match
those by using the kadmin protocol. If a key's version number does not match the version number stored in the Kerberos server's
database, the operation fails. The old keys are retained so that existing tickets continue to work. If the -i flag is specified,
k5srvutil prompts for yes or no before changing each key. If the -k option is used, the old and new keys are displayed.
delold Deletes keys that are not the most recent version from the keytab. This operation should be used at some point after a change
operation to remove old keys. If the -i flag is specified, k5srvutil asks the user whether the old keys associated with each
principal should be removed.
delete Deletes particular keys in the keytab, interactively prompting for each key.
In all cases, the default keytab file is /etc/krb5.keytab file unless this is overridden by the -f option.
k5srvutil uses the kadmin(1M) program to edit the keytab in place. However, old keys are retained, so they are available in case of fail-
ure.
OPTIONS
The following options are supported:
-f filename Specify a keytab file other than the default file, /etc/krb5.keytab.
-i Prompts user before changing keys when using the change or delold operands.
-k Displays old and new keys when using the change operand.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWkdcu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
SEE ALSO
ktutil(1), kadmin(1M), attributes(5)
SunOS 5.11 29 Aug 2006 k5srvutil(1M)