Re: Help on Installing and configuring publicfile
Rajkumar s <[email protected]> Mon, 28 Mar 2005 09:52:13 -0300
| Newsgroups | gmane.comp.djb.publicfile |
|---|---|
| Message-ID | <[email protected]> |
Dear sir,
I had gone through the website www.publicfile.org , found a
patch putftpd , installed as per the instructions but this is used
only for putting files into the common directory. I could authenticate
by creating a user directory , password for that user and could also
set the maxfiles and maxfilesize . But this is just a part of ftp
server.
To make this to work as non anonymous ftp I had applied a patch for
publicfile from the qftpd.org (qftpd-0.30.diff) but after applying
the patch i couldnot connect to the server.
Kindly go through the steps and guide me out where have i went wrong.
Steps are given below:
(1) I had created both the accounts using useradd command.
useradd -g users -d /Users/ftplog -s /bin/sh -m ftplog
Another account is "ftp" which is systems default account.
(2) Configured the account as shown below:
/usr/local/publicfile/bin/configure ftp ftplog /public 192.168.0.15
This had created an directory /public under which three subdirectories
had been created , they are
1) file
2) ftpd
3) httpd
The ftpd and httpd directory had run scripts , which should be
executed using svscan (from daemontools) .
The file directory inturn has 0 directory where you could store the files .
(3) Installed checkpassword applying a patch (chkpw.diff)
(4) copied the auth.ftpd and ftpd binary into the directory
/usr/local/publicfile/bin
(5) Started the ftp server using the run script
The run script is given below:
#!/bin/sh
exec 2>&1
exec softlimit -o20 -d100000 tcpserver -vDRHl0 -b20 -c40 0 21
/usr/local/publicfile/bin/auth.ftpd /usr/local/sbin/checkpassword
/usr/local/publicfile/bin/ftpd /public/file w
But when i'm trying to connect to the server , the connection is
closed by the remote server saying that the "421 service not
available", the conversation is given below:
[enmail@uno enmail]$ ftp 192.168.0.15 21
Connected to 192.168.0.15 (192.168.0.15).
220 You have successfully connected.
Name (192.168.0.15:enmail): enmail
331 Password required.
Password:
421 Service not available, remote server has closed connection
Login failed.
No control connection for command: Permission denied
ftp>
But the login name and password are valid.
gobo@NewMachine /public/ftpd]/usr/local/publicfile/bin/auth.ftpd
/bin/checkpassword id
220 You have successfully connected.
user enmail
331 Password required.
pass enmail
uid=0(gobo) gid=0(gobo) groups=0(gobo),2(sys)
But can anyone suggest me a patch which could be used in bidirectional
operations ie.. putting files and also getting files after
authenticating the user.
Can anyone help me out to set up an ftp server.
Sincerely,
S.Rajkumar
On Sun, 27 Mar 2005 22:23:37 +0100, Andrew Richards
<[email protected]> wrote:
> On Sunday 27 March 2005 20:05, Rajkumar s wrote:
> > ...(snip)...
> >
> > when i'm connecting from remote machine to the server, it doesnot
> > authenticate (It doesnot ask for password as it's an anonymous ftp )
> >
> > i could get the files from the directory /public/file/0 either using
> > recv or get command.
> > But i couldnot write any file into the /public/file/0 directory even
> > after enabling ' w ' or FTPWRITE=1 .
> >
> > ...(snip)...
>
> Hi,
>
> Out of the box, publicfile is a read-only ftp and http server. As you
> suspect,
> you need patches to achieve what you're looking for, see:
>
> http://www.publicfile.org/
>
> which should help you.
>
> Best regards,
>
> Andrew.
>