01-05-2006
password prompts
I would like to log all the commands that are entered on an ssh client. I can do this successfully, however, I dont want to log user logins and passwords. Is there any way to identify passwords and avoid them? For example, I can look for a string 'password:' and ignore everything until a nl/cr. Is there any other way to identify the password prompt reliably so that I can ignore them?
TIA
Bala
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm writing a shell script that rsh's onto a remote machine and runs a perl script that requires values to be entered as the script executes. I also need to ba able to see the outputs from the perl script.
When I try to run it I get an stty : Invalid argument and understand that this is... (4 Replies)
Discussion started by: ianf
4 Replies
2. Shell Programming and Scripting
Hi there
Probably a really simple question but I am writing an install script and at certain stages of the install (ie creating a table in mysql) the system prompts for you to enter a password, I was wondering, how do I script this input so that the install doesnt keep stopping for manual... (3 Replies)
Discussion started by: hcclnoodles
3 Replies
3. Shell Programming and Scripting
hi
i want a script which would invoke a different prompt and execute commands in that prompt and comes back. Is it possible? (3 Replies)
Discussion started by: gopsman
3 Replies
4. UNIX for Advanced & Expert Users
host1 & host2 : Solaris 10 - SPARC server
From host1 able to ssh to host2 as same user with out password prompt. But, when ssh to different user in
host2, it prompts for password
DETAILS
=======
In host1:
1) logged as root
2) ssh-keygen -t dsa -b 1024 (no pass phrase)
3)... (5 Replies)
Discussion started by: vjkatsun
5 Replies
5. AIX
Hi.. I have been asked to delete files in a certain directory in our AIX server, but the problem is, there are over 1000 files to delete. I am prompted by a yes (y) or a no (n) each time and i don't wanna type in a 'y' a thousand times.. :-( Is there a command that i can use to make things faster?... (1 Reply)
Discussion started by: chipahoys
1 Replies
6. Red Hat
I setup the keys between 2 servers, but my user account has no password specified for it (never set one up on the account for security reasons). When I try to SSH to the server, SSH prompts for a password that doesn't exist (so I can never connect successfully).
Note: 'passwd -d Rynok' removes... (3 Replies)
Discussion started by: Rynok
3 Replies
7. Shell Programming and Scripting
Someone recommended using an expect script for an issue I was having so I tried writing one but of the 3 expected prompts on the screen, it only see responds to the first one. The code is:
====================================
#!/usr/local/bin/expect -f
spawn /usr/local/bin/rcs -u1.1 xyz.fmb... (1 Reply)
Discussion started by: pjones006
1 Replies
8. Shell Programming and Scripting
I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this:
#!/bin/bash
rsync /path/on/local/machine/ foo.com:path/on/remote/machine/
ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies
9. Shell Programming and Scripting
Hi, I'm writing a script,
in the script I need to use tcpdump to capture some packets
however it needs root priviledge
my computer is configured by school and I have no real root priviledge
so I can't use sudo on my computer,like
Code:
sudo tcpdump ......
I have to use a limited... (1 Reply)
Discussion started by: esolve
1 Replies
10. Shell Programming and Scripting
Hi All,
I am a novice to UNIX, i need to know is there a way to provide 2 inputs when the shell prompts and i need to assign those 2 values to 2 separate variables. I dont want to give those values as a arguments (while running the script).
Thanks in advance!! (1 Reply)
Discussion started by: prasanna2166
1 Replies
LEARN ABOUT DEBIAN
pam_otpw
PAMOTPW(8) System Manager's Manual PAMOTPW(8)
NAME
pam_otpw - verify one-time passwords
SYNOPSIS
pam_otpw [ arguments ]
DESCRIPTION
OTPW is a one-time password authentication system. It compares entered passwords with hash values stored in the user's home directory in
the file ~/.otpw. Once a password was entered correctly, its hash value in ~/.otpw will be overwritten with hyphens, which disables its
use in future authentication. A lock file ~/.otpw.lock prevents that the same password challenge is issued on several concurrent authenti-
cation sessions. This helps to prevent an eavesdropper from copying a one-time password as it is entered instantly into a second session,
in the hope to get access by sending the final newline character faster than the user could.
Both an authentication management and a session management function are offered by this module. The authentication function asks for and
verifies one-time passwords. The session function prints a message after login that reminds the user of the remaining number of one-time
passwords.
ARGUMENTS
debug Turn on debugging via syslog(3).
nolock Disable locking. This option tells the authentication function of pam_otpw.so to ignore any existing ~/.otpw.lock lock file and not
to generate any. With this option, pam_otpw.so will never ask for several passwords simultaneously.
AUTHOR
The OTPW package, which includes the otpw-gen progam, has been developed by Markus Kuhn. The most recent version is available from
<http://www.cl.cam.ac.uk/~mgk25/otpw.html>.
SEE ALSO
otpw-gen(1), pam(8)
2003-09-30 PAMOTPW(8)