Create User Who Can Only Connect Through FTP

This is was created user "only" connect through FTP,Used in Solaris 9

bash> uname -sr
SunOS 5.9
bash> cat /etc/shells
/bin/bash
[....]
/bin/ftpaccess
/sbin/sh

The Tricks is direct users shell from "bash" to "ftpaccess"

bash> useradd -d /export/home/ftpuser -s /bin/ftpaccess ftpuser

Now connect from windows box to solaris server

dos> C:\> ftp serverftp
Connected to serverftp.
220 serverftp NcFTPd Server (registered copy) ready.
User (serverftp:(none)): ftpuser
331 User testftp okay, need password.
Password:
230-You are user #1 of 50 simultaneous users allowed.
230-
230 Restricted user logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
.profile
local.cshrc
local.login
local.profile
226 Listing completed.
ftp: 51 bytes received in 0,01Seconds 3,40Kbytes/sec.
Done!.
Printed from: http://sysinfo.bascomp.org/2007/07/create-user-who-can-only-connect-through-ftp/ .
© 2010.

Leave a Reply

  • Search