From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tuan Nguyen Newsgroups: gmane.os.tru64.managers Subject: Could not compile Vsftpd with UTMPX and using of "unprivileged user" does not work Date: Thu, 30 Oct 2003 09:38:04 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20031030083804.C040814ECD7@postfix2.ofir.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067503147 9404 80.91.224.253 (30 Oct 2003 08:39:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2003 08:39:07 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Oct 30 09:39:05 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 1AF8Kf-0002e8-00 for ; Thu, 30 Oct 2003 09:39:05 +0100 Original-Received: (qmail 26505 invoked by uid 5); 30 Oct 2003 08:38:48 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 26490 invoked by uid 49493); 30 Oct 2003 08:38:48 -0000 Original-Received: from tng@ofir.dk 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(-2.6/5.0):. Processed in 0.689857 secs); 30 Oct 2003 08:38:48 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 30 Oct 2003 08:38:47 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HNK0060WAOM6M@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 30 Oct 2003 03:38:46 -0500 (EST) Original-Received: from postfix2.ofir.com ([193.0.243.2]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HNK003EAANRNS@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 30 Oct 2003 03:38:16 -0500 (EST) Original-Received: from webmail7.ofir.dk (unknown [192.168.197.27]) by postfix2.ofir.com (Postfix) with ESMTP id C040814ECD7; Thu, 30 Oct 2003 09:38:04 +0100 (CET) Original-To: tru64-unix-managers@ornl.gov X-Mailer: WebMail (Hydra) SMTP v3.51 X-WM-Posted-At: webmail7.ofir.dk; Thu, 30 Oct 03 09:38:04 +0100 X-EXP32-SerialNo: 00002117 Xref: main.gmane.org gmane.os.tru64.managers:5698 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5698 Dear managers, Because of security, tiny code, "up-to-date", and many other good options (compare to wuftpd and proftpd), I prefer Vsftpd. I got it from http://vsftpd.beasts.org/ But I had two problems, I use "GnuPro C" in TRU64 V5.1A DEC6600/EV6. "GnuPro C" is on one of the CD from Compaq/HP. 1) "make" stopped with: gcc -c sysdeputil.c -O2 -Wall -W -Wshadow -idirafter dummyinc sysdeputil.c: In function `vsf_insert_uwtmp': sysdeputil.c:1093: warning: implicit declaration of function `updwtmpx' sysdeputil.c:1093: `WTMPX_FILE' undeclared (first use in this function) sysdeputil.c:1093: (Each undeclared identifier is reported only once sysdeputil.c:1093: for each function it appears in.) sysdeputil.c: In function `vsf_remove_uwtmp': sysdeputil.c:1113: `WTMPX_FILE' undeclared (first use in this function) sysdeputil.c: At top level: sysdeputil.c:1059: warning: `vsf_insert_uwtmp' defined but not used sysdeputil.c:1098: warning: `vsf_remove_uwtmp' defined but not used * Exit 1 Stop. If I undef the variable "VSF_SYSDEP_HAVE_UTMPX" in sysdeputil.c, the compile went through, but "last" does not show who has ftp to my system. How can I fix the UTMPX problem? 2) No matter which "unprivileged user" (nobody, nobody2, scott) I used in /etc/vsftpd.conf, vsftpd always run with root privileges. Is this because of the variable "VSF_SYSDEP_HAVE_UTMPX" above? ps -ef|grep ftp root 256621 923 0.0 08:54:14 ?? 0:00.01 vsftpd tng 256212 256621 0.0 08:54:27 ?? 0:00.00 vsftpd (tng is me) ps -ef|grep 922 root 922 1 0.0 Oct 05 ?? 0:00.00 /usr/sbin/inetd root 923 922 0.0 Oct 05 ?? 0:14.28 -child (inetd) All the other functions are OK and the same source code works fine with RedHat8/gcc. I had google around but could not find anything. I hope you have time to help me out. Thanks on advance. Best regards, Tuan Nguyen tng@ofir.dk