0 Replies Latest reply: Jan 11, 2012 4:18 PM by uldisfromikskile
uldisfromikskile Level 1 (0 points)

I have  FTP service running on my mac mini server according to guide from apple support link: [url]http://support.apple.com/kb/HT4704[/url]


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:


-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 :


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/


-u      Log each concurrent FTP session to /var/run/utmp, making them

             visible to commands such as who(1).


Is this related to Apple not supporting ftp on latest Lion Server (GUI control switched off) or there could be bug with sshd usage?

Mac mini, Mac OS X (10.7.2)