SunOS and ftp logging


 
Thread Tools Search this Thread
Operating Systems Solaris SunOS and ftp logging
# 1  
Old 08-01-2007
SunOS and ftp logging

Hi,
I'd want to enable ftp logging on a SunOS 5.9 machine. I've read some guides I've found on the Internet but, in the syslog file, I stil not have information about that.
In the /etc/inetd.conf I have this line:

Code:
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd -d

In /etc/syslog.conf I added this:

Code:
daemon.debug                                   /var/adm/ftp.log

Finally I created ftp.log in /var/adm, but when I connect via ftp from another machine, I have no information in ftp.log.
I also tried without modifying syslog.conf file, for logging in the /var/adm/messages (is that the file where syslogd writes?), but stil nothing...

What can I do? Please help...


ps
sorry for my english
# 2  
Old 08-01-2007
Did you remember to send a HUP to syslogd after modifying /etc/syslog.conf?

You might also want to look into "man ftpaccess" for refining your logging.

Cheers,
ZB
# 3  
Old 08-01-2007
I killed both syslogd and inetd with:

Code:
kill -HUP process-pid

Though the problem is that, after adding "-d" option to the ftpd line in inetd.conf, I still haven't any kind of logging...
I also tried to add "-A" to disable ftpaccess but no result.

The only information that I can get is

Code:
Aug  1 11:55:50 timoteo ftpd[4941]: [ID 532633 daemon.notice] FTP LOGIN REFUSED (username in /etc/ftpd/ftpusers) FROM 192.168.2.26 [192.168.2.26], root

when I try to log in as root (that is in users denied access)
With other users I have no information in the log file.
Why it doesn't log to syslog?
# 4  
Old 08-02-2007
Data

Now I tried with

Code:
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd -A -l -d

in /etc/inetd.conf, and with

Code:
daemon.*                                        /var/adm/ftp.log

in /etc/syslog.conf, but no log information at all!! Smilie

...help...
# 5  
Old 08-07-2007
Hi, one short question!
You are sure that the /etc/syslog.conf file is without any
other ascii characters then TAB ?

For the syslog.conf file it is mandetory to use only TAB between the objekts.

You can check it inside the vi with the "set list" command.

best regards joerg
# 6  
Old 08-08-2007
I always stop syslogd, then run in interactive debug mode to test changes to syslog.conf

Code:
/usr/sbin/syslogd -d

Cheers
ZB
# 7  
Old 08-08-2007
Ok, I solved with your tips.
There are some non-tab character but, after deleting them, I tried with
Code:
/usr/sbin/syslogd -d

and the output was:

Code:
bash-2.05# /usr/sbin/syslogd -d
main(1): Started at time Wed Aug  8 10:03:19 2007
getnets(1): found 1 addresses, they are: 0.0.0.0.2.2
amiloghost(1): testing 192.168.2.122.2.2
conf_init(1): I am loghost
cfline(1): (*.err;kern.notice;auth.notice                       /dev/sysmsg)
cfline(1): (*.err;kern.debug;daemon.notice;mail.crit    /var/adm/messages)
cfline(1): (*.alert;kern.err;daemon.err                 operator)
cfline(1): (*.alert                                             root)
cfline(1): (*.emerg                                             *)
cfline(1): (mail.debug                  /var/log/syslog)
cfline(1): (daemon.*                                    /var/adm/ftp.log)
logerror_format(1): out syslogd: line 32: unknown priority name "*"
logerror(1): syslogd: line 32: unknown priority name "*"
logerror_to_console(1): syslogd: line 32: unknown priority name "*"
logerror_format(1): out syslogd: syslogd pid 867 already running. Cannot start another syslogd pid 882
logerror(1): syslogd: syslogd pid 867 already running. Cannot start another syslogd pid 882
logerror_to_console(1): syslogd: syslogd pid 867 already running. Cannot start another syslogd pid 882

so I replaced "daemon.*" with "daemon.debug" and now it logs!!! Smilie

Thank you so much!!!!!!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Linux

Syslog not logging successful logging while unlocking server's console

When unlocking a Linux server's console there's no event indicating successful logging Is there a way I can fix this ? I have the following in my rsyslog.conf auth.info /var/log/secure authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies

2. UNIX for Advanced & Expert Users

Not logging ftp connections in /var/adm/wtmpx file (in last command output)

Hi all, I have F5 load balancer on my system and checking service status by opening an ftp session in every 30 seconds. These ftp sessions are being logged in /var/adm/wtmpx and filling up the file. when i run the last command most of the output is this ftp session. I was wondering if there is a... (1 Reply)
Discussion started by: cepxat
1 Replies

3. UNIX for Dummies Questions & Answers

FTP SERVER logging of files retrieved

Is there any addon or finctionality in ftp (SFTP) Server that definitively indicates if a file was retireved and successfully? I am looking for this type of command with logging so -files retrieved -files deleted by remote users can be logged Must be compatible with AIX and UBUNTU. ... (0 Replies)
Discussion started by: cdc01
0 Replies

4. Solaris

All i/o (ftp) not working on this SunOS 5.10

Hi everyone: I have been trying to simply FTP a file over to this SunOS 5.10 (which is same as Solaris 10 now) and nothing works! I can only Telnet to this via SSH (with my own account/uid), and I can also send simple mail out with mailx, that's all!!! I cannot FTP to it (I think FTP... (7 Replies)
Discussion started by: steve701
7 Replies

5. Post Here to Contact Site Administrators and Moderators

Constant Logging In (After Logging Out)

Hi Everyone. First, I want to thank all of you for letting me participate in this great group. I am having a bit of a problem. After I get an email from a responder, I login to make my reply. In the mean time I get another response by email from another member, I go to reply to them and I... (6 Replies)
Discussion started by: Ccccc
6 Replies

6. Solaris

Xferlog in solaris (FTP logging)

HI all, i Have a requirement for my customer fro tracking the ftp user sessions details. After some google search i got to know i need to confgure xferlog for the same.Want to know how to start the xferlog in solaris 10. Please help me :( (2 Replies)
Discussion started by: rgrandhi
2 Replies

7. Solaris

How to change pwd during logging on ftp server?

Dear All, Could I change password while login in to ftp server(solaris 10)? I tried to use fileZilla and command prompt(window) to change my password but It can't. Do you have any suggestion ? Ps. I can't telnet and ssh to the server because of poicy for ftpuser. Thank in advance (3 Replies)
Discussion started by: unitipon
3 Replies

8. UNIX for Dummies Questions & Answers

on unix, ftp to windows...logging in

I am ftp'ing to one of our network drives to pick up a tar file. In the script, it does the ftp, but doesn't pick up the username and password. Do I need to script these a certain way so it knows this is input? ftp machinename.com userid passwd (5 Replies)
Discussion started by: brdholman
5 Replies

9. HP-UX

FTP debug logging

How can I log ftp debug information? I added in /etc/syslog.conf: daemon.debug /var/adm/syslog/syslog.log and then I stopped and started syslogd but it does not log anything... (1 Reply)
Discussion started by: untamed
1 Replies

10. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
Login or Register to Ask a Question