PR 30870: Add user ``_proxy'' and make pf's ftp-proxy use it.
Initial patch by rivo nurges, thanks!
This commit is contained in:
parent
8654277cae
commit
1921cb5602
7
dist/pf/libexec/ftp-proxy/ftp-proxy.c
vendored
7
dist/pf/libexec/ftp-proxy/ftp-proxy.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ftp-proxy.c,v 1.11 2005/07/01 12:43:50 peter Exp $ */
|
||||
/* $NetBSD: ftp-proxy.c,v 1.12 2006/10/07 15:10:17 rpaulo Exp $ */
|
||||
/* $OpenBSD: ftp-proxy.c,v 1.41 2005/03/05 23:11:19 cloder Exp $ */
|
||||
|
||||
/*
|
||||
@ -147,8 +147,13 @@ char ClientName[NI_MAXHOST];
|
||||
char RealServerName[NI_MAXHOST];
|
||||
char OurName[NI_MAXHOST];
|
||||
|
||||
#ifdef __NetBSD__
|
||||
const char *User = "_proxy";
|
||||
const char *Group = "_proxy";
|
||||
#else
|
||||
const char *User = "proxy";
|
||||
const char *Group;
|
||||
#endif
|
||||
|
||||
extern int Debug_Level;
|
||||
extern int Use_Rdns;
|
||||
|
@ -16,6 +16,7 @@ sshd:*:16:
|
||||
_pflogd:*:18:
|
||||
_rwhod:*:19:
|
||||
staff:*:20:root
|
||||
_proxy:*:21:
|
||||
guest:*:31:root
|
||||
nobody:*:39:
|
||||
utmp:*:45:
|
||||
|
@ -10,5 +10,6 @@ ntpd:*:15:15::0:0:& pseudo-user:/var/chroot/ntpd:/sbin/nologin
|
||||
sshd:*:16:16::0:0:& pseudo-user:/var/chroot/sshd:/sbin/nologin
|
||||
_pflogd:*:18:18::0:0:& pseudo-user:/var/chroot/pflogd:/sbin/nologin
|
||||
_rwhod:*:19:19::0:0:& pseudo-user:/var/rwho:/sbin/nologin
|
||||
_proxy:*:21:21:Proxy Services:/nonexistent:/sbin/nologin
|
||||
uucp:*:66:1::0:0:UNIX-to-UNIX Copy:/var/spool/uucppublic:/usr/libexec/uucp/uucico
|
||||
nobody:*:32767:39::0:0:Unprivileged user:/nonexistent:/sbin/nologin
|
||||
|
Loading…
Reference in New Issue
Block a user