"Binand Raj S." proclaimed:
> A step by step instruction set:
<snip>
> 3. Edit /etc/passwd and change the line of ftponly to:
>
> ftponly:<passwd>:uid:gid:OnlyFTP:/home/ftponly/.//:/bin/false
> (note the new and improved home field)
What does the extra '/' do?
> Create the directories /usr/ftponly/{bin,etc,lib} and the files inside
> them. You can (and should) use the anonymous ftp login's home directory
> for the required files and permissions.
D'oh! Forgot to mention this. Here is a good document on setting up the
perfect FTP server: http://www.cetis.hvu.nl/~koos/wu-ftpd-faq.html
> Since ftpd runs from inetd, the whole setup is complete. Test the new
> ftponly login that you have created and release it to the user.
Both of us forgot to mention one thing. The inetd daemon needs to be
restarted. Here is how you do it:
ps aux | grep inetd
Note down the process id and
kill -HUP process_id_of_inetd
Thaths
--
"Ah... the morning horoscope. 'Today will be a day like every other day.'"
-- Homer J. Simpson
Sudhakar C13n http://people.netscape.com/thaths/ Lead Indentured Slave
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.