tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Tuan Nguyen <tng@ofir.dk>
Subject: Could not compile Vsftpd with UTMPX and using of "unprivileged user" does not work
Date: Thu, 30 Oct 2003 09:38:04 +0100	[thread overview]
Message-ID: <20031030083804.C040814ECD7@postfix2.ofir.com> (raw)

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



                 reply	other threads:[~2003-10-30  8:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox