12-10-2010
I would start by configuring syslog. In its logs should be the information you need.
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 OSF1
fasthalt
fasthalt(8) System Manager's Manual fasthalt(8)
NAME
fasthalt - Halts the system
SYNOPSIS
/usr/sbin/fasthalt [-lnq]
DESCRIPTION
The fasthalt command halts the system and flags a subsequent reboot to skip the execution of fsck. The program creates the fastboot file,
then invokes the halt program. The system start-up script contains instructions to look for the fastboot file. If present, the script
removes the file and skips the invocation of the fsck command.
If the command is invoked without the -l, -n, or -q flag, the halt program logs the shutdown using the syslogd command and places a record
of the shutdown in the login accounting file, /var/adm/wtmp. Using the -q and the -n flags imply the -l flag.
You must have root privileges to use this command.
FLAGS
Does not log the halt using syslog. Prevents the sync before stopping, and does not log the halt using syslog. Causes a quick halt, does
not log the halt using syslog, and makes no attempt to kill all processes.
FILES
Specifies the command path Specifies the path of the syslog daemon
RELATED INFORMATION
Commands: fsck(8), halt(8), syslogd(8)
Functions: sync(2), syslog(3) delim off
fasthalt(8)