Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

putvejs

macrumors newbie
Original poster
Jan 11, 2012
1
0
I have setuped FTP server on my mac mini server using guide from apple support link: http://support.apple.com/kb/HT4704

It works well, I have created ftp users which are included in ftp user group which has com.apple.access_ftp access via dseditgroup

The problem is to have some audit info of logged users, transferred files, sessions. I have read man sshd but those options are not working for me

Code:
 -w      Log each FTP session to /var/log/wtmp, making them visible to
             commands such as last(1).  This is the default.

I could not find /var/log/wtmp, and also when using -w option command fails :

Code:
srvmac:etc udzerins$ sudo /usr/sbin/sshd -w /var/log/wtmp
/usr/sbin/sshd: illegal option -- w
OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011
usage: sshd [-46DdeiqTt] [-b bits] [-C connection_spec] [-c host_cert_file]
            [-f config_file] [-g login_grace_time] [-h host_key_file]
            [-k key_gen_time] [-o option] [-p port] [-u len]
srvmac:etc udzerins$

When trying to use -u option for logging concurrent ftp sessions command is processed successifull but file doesn't appear in /usr/run/

Code:
 -u      Log each concurrent FTP session to /var/run/utmp, making them
             visible to commands such as who(1).

Could you please help me?

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.