From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Duffy, Thomas J." Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: wuftp with enhanced security Date: Fri, 12 Dec 2003 15:08:10 -0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F16FF786F31154EB6171035DFB0FC85058EF6@xcgmd062.md.essd.northgrum.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: sea.gmane.org 1071270512 1133 80.91.224.253 (12 Dec 2003 23:08:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2003 23:08:32 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Sat Dec 13 00:08:28 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AUwOZ-0000MY-00 for ; Sat, 13 Dec 2003 00:08:27 +0100 Original-Received: (qmail 19932 invoked by uid 5); 12 Dec 2003 23:08:20 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 19917 invoked by uid 49493); 12 Dec 2003 23:08:20 -0000 Original-Received: from thomas.duffy@ngc.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-5.1/5.0):. Processed in 0.826409 secs); 12 Dec 2003 23:08:20 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 12 Dec 2003 23:08:19 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HPT00E4F1LTH1@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-UNIX-Managers@ornl.gov) ; Fri, 12 Dec 2003 18:08:18 -0500 (EST) Original-Received: from xcgca810.ngxcgcar1.com (xcgca810.northgrum.com [208.12.122.34]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HPT007CM1LQE0@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT Tru64-UNIX-Managers@ornl.gov) ; Fri, 12 Dec 2003 18:08:15 -0500 (EST) Original-Received: by xcgca810.northgrum.com with Internet Mail Service (5.5.2653.19) id ; Fri, 12 Dec 2003 15:00:12 -0800 Content-return: allowed Original-To: Tru64-UNIX-Managers@ornl.gov X-Mailer: Internet Mail Service (5.5.2653.19) content-class: urn:content-classes:message Xref: main.gmane.org gmane.os.tru64.managers:6016 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:6016 Fellow System Managers: Many thanks go out to Eric Sisson for his assistance with this issue. To repeat the problem: We switched to using ENHANCED SECURITY for our Tru64 Version 5.1a host and were unable to complete an ftp login into the system which uses the Washington University FTP (version 2.6.2) server daemon application. Per notes in their FAQ, I attempted to rebuild to include enhanced security support but was still unable to complete an ftp login. I modified the Makefile.du4 and Makefile.dec makefiles to hopefully accomplish the changes, but I was unsuccessful in changing the behavior. Below are the relevant links: http://www.wu-ftpd.org WUFTP Home Page http://www.landfield.com/wu-ftpd/wu-ftpd.org/wu-ftpd/wu-ftpd-2.6.2.tar.gz Download location http://www.wu-ftpd.org/wu-ftpd-faq.html#QA25 FAQ about security The main advantage to this version of FTP is that we can control the guest user's view of the system. In other words, their home directory will appear as the root directory and they can't navigate outside their directory. Has anyone successfully built this version of FTP for a similar host? ============================================================================ Eric's Response: I have built wu-ftpd-2.6.2 on a Tru64 5.0a system (a little earlier than yours) with Enhanced Security, and it is working. The following are items from my notes on the build process. - In this version of the package, the GNU configure process fails to detect C2 security in Tru64. Therefore, use the old build process, modifying file src/makefiles/Makefile.du4 as described within its comments. - The build process creates a link src/pathnames.h pointing to file src/pathnames.h.noac, which specifies paths to configuration and run-time files. Therefore, that file should be modified. However, to specify the paths we wanted, modifying file src/pathnames.h.in was simpler. - Attempt to compile src/logwtmp.c failed because symbols O_WRONLY and O_APPEND were not declared. They are declared in , but compilation must specify -DHAVE_FCNTL_H to include this file. - Attempt to compile src/logwtmp.c generates warning message at an invocation of C library function time because the function expects a pointer value of type "int" but is supplied with an argument of type "long". Fix this by using function time64 instead. I made changes to "src/makefiles/Makefile.du4" as specified by the following diffs: 32c32 < IFLAGS = -I.. -I../support -Olimit 1000 -DVIRTUAL --- > IFLAGS = -I.. -I../support -Olimit 1000 -DVIRTUAL -DSECUREOSF >-DHAVE_FCNTL_H 37c37 < LIBES = -lsupport -lresolv --- > LIBES = -lsupport -lresolv -lsecurity I made changes to "src/logwtmp.c" as specified by the following diffs: 195c195 < (void) time(&ut.ut_time); --- > (void) time64(&ut.ut_time); I think these are the main points. I hope this proves helpful to you. Good luck. ======================================================================== The steps above worked fine, but I did have a problem with pathnames.h because the paths specified in it were incompatible with the ones that were used when the original version (pre-enhanced security) was installed. Once I corrected that, it worked fine. Thanks.