From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078721912054.tru64-unix-managers.marc@archive.invalid> From: Steve Bailey Date: Wed, 23 Sep 1998 19:32:59 +0000 To: tru64-unix-managers Subject: Help with configuring wu-ftpd_2_4 on Digital Unix 4.0 version b X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078721912054 I am a novice UNIX user and I need help with wu-ftpd_2.4. My goal is to create an ftp site so that when a user logs in he is restricted to upload and download from specified directories and also he may not be able to browse any other directories that I don't give him/her access to. I copied the wu-ftpd_2_4_tar to the /usr/ftproot directory and uncompressed the files in that directory. This created a directory called wu-ftpd . Here is what I have done so far I ran ./build osf and it came back with the following information: make args are : make opts are : Linking Makefiles. Making support library. rm -f libsupport.a ar cq libsupport.a getusershell.o fnmatch.o strcasestr.o strerror.o strsep.o authuser.o ranlib libsupport.a Making ftpd. `ftpd' is up to date. Making ftpcount. `ftpcount' is up to date. Making ftpshut. `ftpshut' is up to date. Making ckconfig. `ckconfig' is up to date. Links to executables are in bin directory: text data bss dec hex 114688 24576 27008 166272 28980 bin/ftpd 16384 8192 0 24576 6000 bin/ftpcount 16384 8192 0 24576 6000 bin/ftpshut 16384 8192 0 24576 6000 bin/ftpwho 8192 8192 0 16384 4000 bin/ckconfig Done So this is what my pathnames.h file looks like #define _PATH_FTPUSERS "/etc/ftpusers" #define _PATH_FTPACCESS "/usr/local/etc/ftpaccess" #define _PATH_EXECPATH "/bin/ftp-exec" #define _PATH_PIDNAMES "/usr/local/daemon/ftpd/ftp.pids-%s" #define _PATH_CVT "/usr/local/etc/ftpconversions" #define _PATH_XFERLOG "/usr/adm/xferlog" #define _PATH_PRIVATE "/etc/ftpgroups" #ifndef _PATH_UTMP #define _PATH_UTMP "/usr/var/adm/utmp" #define _PATH_WTMP "/usr/var/adm/wtmp" #define _PATH_LASTLOG "/usr/var/adm/lastlog" #endif #define _PATH_BSHELL "/usr/bin/sh" #define _PATH_DEVNULL "/dev/null" #ifdef HOST_ACCESS #define _PATH_FTPHOSTS "/usr/local/etc/ftphosts" #endif Next, I ran ./build install and it installed all of the man pages. Next, I accocording to the Install procedure I make the ftp use the new daemon by having it point to the new ftpd. So the entry in my inetd.conf file looks like this : ftp stream tcp nowait root /usr/local/etc/ftpd ftpd Next, I copied the ftpconversions, ftpuers and the ftpgroups files to the paths specified in pathnames.h. Next, I ran bin/ckconfig and below is the output of that command Checking _PATH_FTPUSERS :: /etc/ftpusers ok. Checking _PATH_FTPACCESS :: /usr/local/etc/ftpaccess ok. Checking _PATH_PIDNAMES :: /usr/local/daemon/ftpd/ftp.pids-%s ok. Checking _PATH_CVT :: /usr/local/etc/ftpconversions ok. Checking _PATH_XFERLOG :: /usr/adm/xferlog I can't find it... Don't worry, it will be created automatically by the server if you do transfer logging. 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 :: /usr/local/etc/ftphosts ok. So my final question is how do I do the following: Make it so that a user let's say test who belongs to the group ftptester can ftp into a directory and upload and download from specified directories and at the same time restrict the user test from access to other directories. Below is what my ftpaccess file looks like class all real,guest,anonymous * limit all 10 Any /etc/msgs/msg.dead readme README* login readme README* cwd=* message /welcome.msg login message .message cwd=* compress yes local remote tar yes local remote log commands real log transfers anonymous,real inbound,outbound shutdown /etc/shutmsg email chinu01@translink.com Can anyone show me what changes I need to make to this file or any others to make this thing work. my email address is sbailey@muscato.com Please reply as soon as possible Thanks Steve Bailey