Skip navigation

Lion Server ftp log configuration problem

858 Views 0 Replies Latest reply: Jan 11, 2012 4:18 PM by uldisfromikskile RSS
uldisfromikskile Calculating status...
Currently Being Moderated
Jan 11, 2012 4:18 PM

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


It works well, I have created ftp users which are included in ftp user group which has 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)


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.