summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2007-06-11 18:36:39 +0000
committerceri <ceri@FreeBSD.org>2007-06-11 18:36:39 +0000
commit171530740255dca87c0ebd6b0cac67eb20adb8aa (patch)
tree57752bea8c95ae686e215496fa72259ea3b74e5f /usr.sbin
parent4bd623e29b3b8c6b5b106c67d7635f7a8d420a14 (diff)
downloadFreeBSD-src-171530740255dca87c0ebd6b0cac67eb20adb8aa.zip
FreeBSD-src-171530740255dca87c0ebd6b0cac67eb20adb8aa.tar.gz
Create group ftp by default. This is gid 14 as this is the historical
id used by sysinstall when enabling anonymous FTP. Change the default group used by sysinstall for setting up anonymous FTP from operator to ftp; there is no reason to use operator and there are potential security issues when doing so. PR: 93284 Approved by: ru (mentor) Reviewed by: simon
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/anonFTP.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/sysinstall/anonFTP.c b/usr.sbin/sysinstall/anonFTP.c
index 7427076..2eaf636 100644
--- a/usr.sbin/sysinstall/anonFTP.c
+++ b/usr.sbin/sysinstall/anonFTP.c
@@ -49,8 +49,8 @@
/* These change if we want to use different defaults */
#define FTP_UID 14
-#define FTP_GID 5
-#define FTP_GROUP "operator"
+#define FTP_GID 14
+#define FTP_GROUP "ftp"
#define FTP_UPLOAD "incoming"
#define FTP_COMMENT "Anonymous FTP Admin"
#define FTP_HOMEDIR "/var/ftp"
@@ -148,7 +148,7 @@ createFtpUser(void)
else if (!getgrgid(gid)) {
/* group does not exist, create it by number */
- tptr = msgGetInput("14", "What group name to use for gid %d ?", gid);
+ tptr = msgGetInput("ftp", "What group name to use for gid %d ?", gid);
if (tptr && *tptr) {
SAFE_STRCPY(tconf.group, tptr);
if ((tgrp = getgrnam(tconf.group))) {
OpenPOWER on IntegriCloud