150

Parameter (ftp:)

Description

showWelcomeMessage

Default = yes

 

 

welcomeMessage

Displays a welcome message that appears after you

 

log in to the FTP. Customize to your own

 

preferences. Default =

 

"-------------------------------------

 

This is the "Welcome" message for the

 

Mac OS X Server's FTP server process.

 

FTP clients will receive this message

 

right after a successful log in.

 

-------------------------------------"

 

 

List of FTP serveradmin Commands

You can use the following commands with the serveradmin tool to manage FTP service. See the examples in the following sections for details on how to use these commands.

Command (ftp:command=)

Description

getConnectedUsers

List connected users. See “Checking for Connected FTP Users” on

 

page 150.

 

 

getLogPaths

Show location of the FTP transfer log file. See “Viewing the FTP

 

Transfer Log” on page 150.

 

 

writeSettings

Equivalent to the standard serveradmin settings command,

 

but also returns a setting indicating whether the service needs to

 

be restarted. See “Using the serveradmin Tool” on page 48.

 

 

Viewing the FTP Transfer Log

You can use tail or any other file-listing tool to view the contents of the FTP transfer log.

To view the latest entries in the transfer log:

$ tail log-file

By default the log-fileis located in /Library/Logs/FTP.transfer.log. You can use the serveradmin getLogPaths command to see where the current transfer log is located.

To display the log path:

$ sudo serveradmin command ftp:command = getLogPaths

Checking for Connected FTP Users

To see how many FTP users are connected:

$ ftpcount

or

$ sudo serveradmin command ftp:command = getConnectedUsers

Chapter 9 Working with File Services

Page 150
Image 150
Apple Mac OS X Server List of FTP serveradmin Commands, Viewing the FTP Transfer Log, Checking for Connected FTP Users