AIX ftp/sftp script monitor to failed logins


 
Thread Tools Search this Thread
Operating Systems AIX AIX ftp/sftp script monitor to failed logins
# 1  
Old 12-10-2010
AIX ftp/sftp script monitor to failed logins

Hi All,

Any idea on how to write a script on AIX 5.3 to monitor ftp or sftp login failed.

Thanks and more power,
Itik
# 2  
Old 12-10-2010
I would start by configuring syslog. In its logs should be the information you need.
# 3  
Old 12-10-2010
thanks

i think i can also use the command "who /etc/security/failedlogin "...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to find whether a particular command has failed inside an sftp script?

hi, how can i know whether a command inside an sftp script has failed or not? i have a sftp expect script #!/usr/bin/expect spawn /usr/bin/sftp abc@ftp.abc.com expect "sftp>" send "cd dir\r" expect "sftp>" send "mput abc.txt\r" expect "sftp>" send "mput def.xls\r" expect "sftp>"... (5 Replies)
Discussion started by: Little
5 Replies

2. Solaris

loginlog not registering failed logins

Hello guys, I made a loginlog file to register failed login attempts on my sun-blade 1500 server ( just studying at home) . The code below is how I created the file : # touch /var/adm/loginlog # chmod 600 /var/adm/loginlog # chgrp sys /var/adm/loginlog After creating the file, I... (1 Reply)
Discussion started by: cjashu
1 Replies

3. Shell Programming and Scripting

replacing ftp with sftp in the script....

Hi, I have the following bash script(related to ftp) that read the parameters from the properties file and then transfer some files to the remote machine... following is the bash script .... #!/bin/sh . ftp.properties ftp -vin >> ftp.log <<-! open $RemoteIp user... (7 Replies)
Discussion started by: rahul125
7 Replies

4. Shell Programming and Scripting

script from ftp to sftp

salmo allikm warhmat allah wabrakato i have my own server and upload file with ftp with this script ftp -n xxxxxxxxxcom<<EOF user xxxx xxxx binary put image bye EOF i want to convert to sftp or secure protocol when change to sftp no respond it stop i don't know how to start ... (7 Replies)
Discussion started by: pua06
7 Replies

5. Shell Programming and Scripting

Shell Script to monitor folder and upload found files via FTP

Hi everyone! I'm in a need of a shell script that search for all files in a folder, move all those files to a temp folder, and upload those files via FTP. When the file transfer via FTP completes successfully, the file is moved to a completed folder. In case any of those files fails, the file... (4 Replies)
Discussion started by: pulsorock
4 Replies

6. Shell Programming and Scripting

How to track FTP logins

I have put in the "script" command in the .profile of a particular user id that tracks the terminal session when the user id logs in. But when the user logs on to the server using FTP, how can this be tracked? Any input will be appreciated. (1 Reply)
Discussion started by: ggayathri
1 Replies

7. Shell Programming and Scripting

Another question for tracking failed logins via script

Hello Experts, I have this initial shell script that tracks failed login attempts: #!/bin/bash #Fetch failed user logins to file failed-logins.txt grep -i failed /var/log/secure | awk '{ print $1, $2" ", $3" ", $9" ", $11 }' > failed-logins.txt #Splitting the failed-logins in... (10 Replies)
Discussion started by: linuxgeek
10 Replies

8. AIX

Aix script to monitor when a file has been updated

Hi Im looking to create a Aix script to monitor a file for once it's been updated and then send an email. I dont have great scripting knowledge and have only come up with the following so far while true do find /home/test/AMQ* -mmin 1 > /home/test/scripts/output/MQERRORS exec... (2 Replies)
Discussion started by: elmesy
2 Replies

9. AIX

SFTP Failed---Request for subsystem 'sftp' failed on channel 0

Hi, While I am trying SFTP my machine to another unix machine , it was working fine till 10 min back. But now i am getting the below error "Request for subsystem 'sftp' failed on channel 0" Could you please someone help me to solve or analyise the root cause... Cheers:b:, Mahiban (0 Replies)
Discussion started by: mahiban
0 Replies

10. HP-UX

limiting failed logins to three

I have tried limiting failed logins to three by the following method logins -ox \ | awk -F: '($8 != "LK" && $1 != "root") { print $1 }' \ | while read logname; do /usr/lbin/modprpw -m umaxlntr=3 "$logname" done /usr/lbin/modprdef -m umaxlntr=3 but it is failing on the 4th... any ideas?... (1 Reply)
Discussion started by: csaunders
1 Replies
Login or Register to Ask a Question