Subject: RE: cannot open access file /etc/ftpaccess ... It should look at /usr/local/etc for ftpaccess - how to do that?

From: Magdalena Hewryk <[email-masked]>
Date: Wed, 5 May 1999 13:04:04 -0400

Gregory:
Regarding the /etc/ftpaccess in "upload.configuration.HOWTO" I found a line:
[...]
In /etc/ftpaccess, we need a class which allows anonymous access.  The
following allows anonymous FTP from anywhere:
class anonftp anonymous *
[...]

Question:
Why is that?  I don't have /etc/ftpacces,
I do have /usr/local/etc/ftpaccess

My /src/pathnames.h contains default values:

#ifdef USE_ETC
#define _PATH_FTPUSERS  "/etc/ftpusers"
#define _PATH_FTPACCESS "/etc/ftpaccess"
#define _PATH_CVT       "/etc/ftpconversions"
#define _PATH_PRIVATE   "/etc/ftpgroups"
#else
#ifdef USE_ETC_FTPD
#define _PATH_FTPUSERS  "/etc/ftpd/ftpusers"
#define _PATH_FTPACCESS "/etc/ftpd/ftpaccess"
#define _PATH_CVT       "/etc/ftpd/ftpconversions"
#define _PATH_PRIVATE   "/etc/ftpd/ftpgroups"
#else
#ifdef USE_LOCAL_ETC
#define _PATH_FTPUSERS  "/usr/local/etc/ftpusers"
#define _PATH_FTPACCESS "/usr/local/etc/ftpaccess"
#define _PATH_CVT       "/usr/local/etc/ftpconversions"
#define _PATH_PRIVATE   "/usr/local/etc/ftpgroups"
#else
#ifdef USE_OPT_FTPD
#define _PATH_FTPUSERS  "/opt/ftpd/lib/ftpusers"
#define _PATH_FTPACCESS "/opt/ftpd/lib/ftpaccess"
#define _PATH_CVT       "/opt/ftpd/lib/ftpconversions"
#define _PATH_PRIVATE   "/opt/ftpd/lib/ftpgroups"
#else
#define _PATH_FTPUSERS  "/usr/local/lib/ftpd/ftpusers"
#define _PATH_FTPACCESS "/usr/local/lib/ftpd/ftpaccess"
#define _PATH_CVT       "/usr/local/lib/ftpd/ftpconversions"
#define _PATH_PRIVATE   "/usr/local/lib/ftpd/ftpgroups"
#endif
#endif
#endif
#endif
-----Original Message-----
From: Magdalena Hewryk 
Sent: Wednesday, May 05, 1999 12:20 PM
To: 'Gregory A Lundberg'
Subject: cannot open access file /etc/ftpaccess

Hello Gregory,

I have two questions regarding:
1. user authentication problems
2. ckconfig

I upgraded my BETA17 to BETA18 VR15 (on ftp://ftp.vr.net/pub/wu-ftpd/attic/
VR17 is not posted) 
****************************************************************************
/usr/sbin

-r-xr-xr-x   1 bin      bin       660596 May  5 10:50 in.ftpd-old
-r-xr-xr-x   1 bin      bin       660596 May  5 11:16 in.ftpd
-r-xr-xr-x   1 bin      bin        54316 May  5 11:16 ftpwho
-r-xr-xr-x   1 bin      bin        48764 May  5 11:16 ftpshut
-r-xr-xr-x   1 bin      bin        54316 May  5 11:16 ftpcoun
***************************************************************************
				ERROR
and I am getting  this error messages:
220 savior FTP server (Version wu-2.4.2-academ[BETA-18-VR15](1) Wed May 5
10:47:52 EDT 1999) ready.
Name (0:cssbeta): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
530 Login incorrect.
Login failed.
***************************************************************************
logs:
May  5 11:51:28 savior ftpd[14850]: cannot open access file /etc/ftpaccess:
No such file or directory
May  5 11:51:32 savior ftpd[14850]: ACCESS DENIED (error reading access
file) TO localhost [xxx]
May  5 11:51:32 savior ftpd[14850]: FTP LOGIN REFUSED (access denied) FROM
localhost [xxx], magda
May  5 11:51:39 savior ftpd[14850]: FTP session closed

****************************************************************************
I know that my ftpaccess is in /usr/local/etc
Question 1:
Where should I go and change the path to redirec it to
/usr/local/etc/ftpaccess.
****************************************************************************
*
				ERROR
Questin 2:

# ./ckconfig
How can I fix these problem?

Checking _PATH_FTPUSERS :: /etc/ftpusers
I can't find it... look in doc/examples for an example.

Checking _PATH_FTPACCESS :: /etc/ftpaccess
I can't find it... look in doc/examples for an example.

Checking _PATH_PIDNAMES :: /var/adm/ftp.pids-%s
ok.

Checking _PATH_CVT :: /etc/ftpconversions
I can't find it... look in doc/examples for an example.

Checking _PATH_XFERLOG :: /var/adm/xferlog
ok.

Checking _PATH_PRIVATE :: /etc/ftpgroups
I can't find it... look in doc/examples for an example.
You only need this if you want SITE GROUP and SITE GPASS
functionality. If you do, you will need to edit the example.

Checking _PATH_FTPHOSTS :: /etc/ftphosts
I can't find it... look in doc/examples for an example.
You only need this if you are using the HOST ACCESS features
of the server.
********************************************************************

# ftp    stream  tcp nowait  root    /usr/local/sbin/in.ftpd in.ftpd -lad
ftp stream  tcp nowait  root    /usr/sbin/in.ftpd   in.ftpd -lad   
*********************************************************************
/etc
kill -HUP 999 (999-inetd-pid)
*********************************************************************8

-----Original Message-----
From: Gregory A Lundberg [mailto:[email-masked]]
Sent: Monday, May 03, 1999 6:46 PM
To: Magdalena Hewryk
Subject: Re: BETA-18 VR14 !!! path to the FTP -WU !!! downloads!!!

On Mon, 3 May 1999, Magdalena Hewryk wrote:

> Please, give me the address of BETA-18 VR14.

ftp://ftp.vr.net/pub/wu-ftpd/attic/

---

From: Gregory A Lundberg <[email-masked]>
Date: Wed, 5 May 1999 13:14:44 -0400 (EDT)

> You only need this if you are using the HOST ACCESS features

The daemon is set up so it compiles with the files where they're normally
located on your system.

To change the selection, since you're using one of the known
organizations, edit src/config/config.<os>  (for me on Linux,
src/config/config.lnx) and change the line reading

#define USE_ETC

to read

#define USE_LOCAL_ETC

Then do a 'build clean' and 'build <os>' to recompile the daemon with the
new pathnames.  run the new ckconfig to be sure it's happy then try the
daemon.

-- 

Gregory A Lundberg              Senior Partner, VRnet Company
1441 Elmdale Drive              [email-masked]
Kettering, OH 45409-1615 USA    1-800-809-2195