ftpconfig.1m revision c10c16dec587a0662068f6e2991c29ed3a9db943
te
Copyright (C) 2002, Sun Microsystems, Inc. All Rights Reserved
The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
ftpconfig 1M "1 May 2003" "SunOS 5.11" "System Administration Commands"
NAME
ftpconfig - set up anonymous FTP
SYNOPSIS

ftpconfig [ftpdir]

ftpconfig -d ftpdir
DESCRIPTION

The ftpconfig script is executed by the super user to set up anonymous FTP. Anonymous FTP allows users to remotely log on to the FTP server by specifying the user name ftp or anonymous and the user's email address as password. The anonymous users are logged on to the FTP Server and given access to a restricted file area with its own file system root. See chroot(2). The FTP area has its own minimal system files.

This command will copy and set up all the components needed to operate an anonymous FTP server, including creating the ftp user account, creating device nodes, copying /usr/lib files, and copying timezone data. The passwd and group files set up have been stripped down to prevent malicious users from finding login names on the server. The anonymous file area will be placed under ftpdir. If the ftp user account already exists, then the current FTP area is used, and the system files in it are updated. All other files are left untouched. This command should be run to update the anonymous FTP area's configuration whenever a system patch is installed, or the system is upgraded.

OPTIONS

-d

Create a new or update an existing ftpdir without creating or updating the ftp user account. Use this option when creating guest FTP user accounts.

OPERANDS

The following operands are supported:

ftpdir

The absolute pathname of the directory under which the anonymous FTP area is set up.

EXIT STATUS

The following exit values are returned:

0

Successful completion

1

Improper usage of the command

2

Command failed

ATTRIBUTES

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityEvolving
SEE ALSO

ftpaddhost(1M), in.ftpd(1M), useradd(1M), chroot(2), attributes(5)