Re: Trouble migrating to Linux...

Bob Luckin <[email protected]> Thu, 13 May 2004 17:57:05 -0500
Newsgroups gmane.network.ftp.wuftpd.user
Message-ID <[email protected]>
On Thu, May 13, 2004 at 03:31:53PM -0600, [email protected] wrote:
> Moving my ftp server from Solaris 8 to Red Hat Linux version
> 2.4.20-31.9smp #1 SMP.  Having 2 problems:
> 
> 1.  Can't login with anonymous anymore, even after restoring the ftp
> data structure and the passwd/group files:
> 
> Password:
> 530 Can't set guest privileges.
> Login failed.
> ftp> quit

If I remember correctly, that error message comes about when the daemon is
unable to chroot to the anonymous FTP directory (or guest directory, if using
guests).  You might want to check that you have the correct pathname in the
ftpaccess anonymous-root clause, if you're using that.  If not, check the
directory given for the ftp user in the passwd file (I know you said you
restored the data structure and passwd file, but make sure anyway).  Also
make sure the permissions on the directory are OK, it is mounted correctly
etc..  Basically look for anything that would stop the chroot from working.

> 2.  Don't know how to add the patches (connect-dos.patch, etc) on Linux.
> 
> Any thoughts?  I've searched the archive mailing list, and not much
> luck.

cd to the directory containing the source files, and run the patch command;
something along the lines of
   patch -p0 < my_patch_file
where "my_patch_file" is the patchname of the patch you want to install.
(Check the patch man page to make sure the syntax above is correct; I think
some OS's have patch commands that prefer "-p 0" to "-p0".)

Then recompile and reinstall the binary.

Of course, it would probably pay to take a copy of the unpatched source and/or
binary first, just in case something deosn't work as expected wrong and you
want to restore the original.

> 
> ...NOTE : HTML SECTION HAS BEEN FILTERED OUT AT THIS LOCATION...

Good luck !

Cheers, Bob
-- 
Bob Luckin      [email protected]      "Coder, adapt; FTP Ada, redo C"