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:28:59 -0400

Gregory,
It's working! Thanks.

220 ALPHA FTP server (Version wu-2.4.2-academ[BETA-18-VR15](1) Wed May 5
10:47:52 EDT 1999) ready.
Name (0:alpha): anonymous
331 Guest login ok, send your complete e-mail address as password.
Password:
230 Guest login ok, access restrictions apply.
ftp> 

Thank you,
...Magda

-----Original Message-----
From: Gregory A Lundberg [mailto:[email-masked]]
Sent: Wednesday, May 05, 1999 1:15 PM
To: Magdalena Hewryk
Cc: [email-masked]
Subject: RE: cannot open access file /etc/ftpaccess ... It should look
at /usr/local/etc for ftpaccess - how to do that?

On Wed, 5 May 1999, Magdalena Hewryk wrote:

> 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

> May  5 11:51:28 savior ftpd[14850]: cannot open access file
/etc/ftpaccess:
> No such file or directory

> 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.

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