12-10-2010
thanks
i think i can also use the command "who /etc/security/failedlogin "...
10 More Discussions You Might Find Interesting
1. HP-UX
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
2. AIX
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
3. AIX
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
4. Shell Programming and Scripting
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
5. Shell Programming and Scripting
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
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
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
8. Shell Programming and Scripting
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
9. Solaris
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
10. Shell Programming and Scripting
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
LEARN ABOUT V7
sftp-server
sftp-server(1M) System Administration Commands sftp-server(1M)
NAME
sftp-server - SFTP server subsystem
SYNOPSIS
/usr/lib/ssh/sftp-server
DESCRIPTION
sftp-server implements the server side of the SSH File Transfer Protocol as defined in the IETF draft-ietf-secsh-filexfer.
sftp-server is a subsystem for sshd(1M) and must not be run directly. There are no options or config settings.
To enable the sftp-server subsystem for sshd add the following to /etc/ssh/sshd_config:
Subsystem sftp /usr/lib/ssh/sftp-server
See sshd_config(4) for a description of the format and contents of that file.
There is no relationship between the protocol used by sftp-server and the FTP protocol (RFC 959) provided by in.ftpd.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
FILES
/usr/lib/sftp-server
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWsshdu |
+-----------------------------+-----------------------------+
|Interface Stability |Evolving |
+-----------------------------+-----------------------------+
SEE ALSO
sftp(1), ssh(1), ssh-add(1), ssh-keygen(1), sshd(1M), sshd_config(4), attributes(5)
To view license terms, attribution, and copyright for OpenSSH, the default path is /var/sadm/pkg/SUNWsshdr/install/copyright. If the
Solaris operating environment has been installed anywhere other than the default, modify the given path to access the file at the installed
location.
AUTHOR
Markus Friedl
SunOS 5.10 30 Jul 2003 sftp-server(1M)