Daemon logs in AIX


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Daemon logs in AIX
# 1  
Old 11-03-2019
Daemon logs in AIX

I have to enable sftp and scp daemon logs in AIX 7.1. Currently only ftp daemons are being logged. What are the steps for doing so? Also programs such as filezilla uses sftp service to log into AIX. How do I ensure that sftp/scp continues to function after making change? Also needs to know what does ftp -d option in /etc/inetd.conf does?

Thank you

Last edited by jim mcnamara; 11-03-2019 at 10:33 AM..
# 2  
Old 11-03-2019
You will probably need to edit:

Code:
/etc/ssh/sshd_config

and add a line to enable syslog, for example:

Code:
 SyslogFacility
	      Gives the facility code that is used when logging messages  from
	      sshd(8).	 The  possible values are: DAEMON, USER, AUTH, LOCAL0,
	      LOCAL1, LOCAL2, LOCAL3, LOCAL4,  LOCAL5,	LOCAL6,	 LOCAL7.   The
	      default is AUTH.

All this information is available on the AIX man page for sshd and sshd_config in case you want to read more.
# 3  
Old 11-03-2019
Hi Neo,
I had changed this on my sshd_config file but once I did that and stopped/started sshd daemon tge sftp login through filezilla stopped working so I had to revert back. This was the entry change

Subsystem sftp /usr/sbin/sftp-server -f DAEMON -I INFO

Thanks
# 4  
Old 11-03-2019
please try this:
Code:
#vi /etc/ssh/sshd_config

Locate the following line:
Subsystem sftp /usr/sbin/sftp-server
Add the following parameters "-l INFO -f AUTH" at the end:
Code:
Subsystem sftp /usr/sbin/sftp-server -l INFO -f AUTH

afterwards configure syslog:
Code:
#vi /etc/syslog.conf

Add the following line in syslog.conf
Code:
auth.info /tmp/sftp.log

create the logfile and refresh/restart the services
Code:
#touch /tmp/sftp.log
#refresh -s syslogd
#stopsrc -s sshd
#startsrc -s sshd

no idea what ftp -d does - I have never seen that on any box
These 2 Users Gave Thanks to zxmaus For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Configure AIX server to send logs and auditing to Qradar

Hi All I need your help to configure Aix to send logs to Qradar, I did all the methods that mentioned in IBM website and no use, Plz Help,, The Logs should I receive from Aix and display in Qradar is (create user delete user changing in privileges....etc ) my skype account khaled_ly84 ... (4 Replies)
Discussion started by: khaled_ly84
4 Replies

2. AIX

AIX system logs files

hello, i just want to know logs files for these actions listed below : - User Account Creation - User Account Deletion - Failed and or Successful User Password Changes - Failed Login Activities for all User Users - System Reboot or and shutdown help appreciated... (6 Replies)
Discussion started by: Bolou
6 Replies

3. UNIX for Advanced & Expert Users

AIX idea needed to check the logs updated date and time

Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is 1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp. 2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Discussion started by: Kalaihari
2 Replies

4. AIX

AIX Logs - SLPServiceListener Error

I have enabled logging on all of my AIX systems. # vi /etc/syslog.conf *.debug;*.emerg;*.alert;*.crit;*.warning /var/log/messages rotate size 1000k files 4 syslog.debug /var/log/syslog rotate size 1000k files 4 *.err;kern.debug;daemon.notice;mail.crit /var/adm/messages rotate size 1000k... (2 Replies)
Discussion started by: bblondin
2 Replies

5. AIX

How to send AIX logs to windows

good day all how to send aix syslogs to a shared folder in windows regards , (2 Replies)
Discussion started by: thecobra151
2 Replies

6. Shell Programming and Scripting

Script to clean nmon logs on AIX

I use NMON (Nigels Monitoring) in AIX. It creates a daily nmon log with the naming conventions of: hostname_YYMMDD_0000.nmon or myserver_080902_0000.nmon What I am interested in doing is creating a script that is executed on the first of each month to clean up last months *nmon files. .... (4 Replies)
Discussion started by: outtacontrol
4 Replies

7. AIX

location of logs on AIX 4.3 and 5.3

Hi All, I would like to know where's the location of ALL system error logs on AIX43 and AIX53. Thanks, itik (1 Reply)
Discussion started by: itik
1 Replies

8. UNIX for Advanced & Expert Users

Porting GNU FTPD daemon from Linux to AIX

Dear All, I want to port GNU ftpd daemon server from Linux to AIX. I want to download GNU ftpd daemon for linux. Please tell me from where I can download this code and which code will be most suitable for this porting? Please help in this regard. Thanks Siva (0 Replies)
Discussion started by: srksn
0 Replies

9. AIX

AIX5L - finding the AIX logs for the lp scheduler

Hi Everyone, I have a problem with the queue on a Zebra printer. I wanted to find where the scheduler logs are. Found a document: http://www.redbooks.ibm.com/redbooks/pdfs/sg245496.pdf The problem is the chapters 12.3 and 12.4 mention the logs should be in /var/lp and I do not have such a... (0 Replies)
Discussion started by: rysiekmus
0 Replies

10. UNIX for Dummies Questions & Answers

daemon running in AIX checking

how do u check if a daemon is running in AIX.. Is it ps -ef|grep daemon lssrc -s demon ??? Thanks! (0 Replies)
Discussion started by: karthikosu
0 Replies
Login or Register to Ask a Question