Shell Tips

ID #1058

How do I make FTP-only users?

FTP-only users can be created via a program on the shell server. Log in and try the 'control-ftp' program:

$ control-ftp
You do not have any FTP-only users associated with your account.
Usage:
-u, --user=NAME The user to create / delete / view / set a password for.
-c, --create Create the specified user.
-d, --delete Delete the specified user.
-l, --list List current FTP-only users.
-p, --password Change password for the specified user.
-g, --generate-password Generate a random password for the user.
-r, --root-dir=DIR Set the root directory for this FTP-only user.
-v, --view View details about a FTP-only user.

-h, --help Show this message


To create a user, do:

$ control-ftp --create --user=my_test_user -g
Password set to: MqBarAbyMY

The '-g' option tells control-ftp to generate a password for you. If you omit '-g', you will be prompted for a password.

You can also specify what directory the FTP-user is restricted to (via chroot()). This defaults to your home directory.

Tags: -

Related entries:

Last update: 2006-07-05 17:38
Author: Dave Steinberg
Revision: 1.0

Digg it! Print this record Send to a friend Show this as PDF file
Propose a translation for Propose a translation for
Please rate this entry:

Average rating: 5 out of 5 (4 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry