diff options
author | jkh <jkh@FreeBSD.org> | 1996-09-06 05:58:27 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-09-06 05:58:27 +0000 |
commit | c93475e95f3e8a436294b39440480c78012ba35b (patch) | |
tree | d691a762b2a6e4033cc4f2c70cb0f8a79d2d60e3 /release/sysinstall/anonFTP.c | |
parent | b83f9c3559c37283a817dd18c9a4713b4e3ce785 (diff) | |
download | FreeBSD-src-c93475e95f3e8a436294b39440480c78012ba35b.zip FreeBSD-src-c93475e95f3e8a436294b39440480c78012ba35b.tar.gz |
Close a security hole in anonymous ftp setup.
Submitted-By: Jason Garman <garman@phs.k12.ar.us>
Diffstat (limited to 'release/sysinstall/anonFTP.c')
-rw-r--r-- | release/sysinstall/anonFTP.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/anonFTP.c b/release/sysinstall/anonFTP.c index 5f0381d..20e26b3 100644 --- a/release/sysinstall/anonFTP.c +++ b/release/sysinstall/anonFTP.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: anonFTP.c,v 1.15 1996/08/03 10:10:29 jkh Exp $ + * $Id: anonFTP.c,v 1.16 1996/09/01 08:17:12 jkh Exp $ * * Copyright (c) 1995 * Coranth Gryphon. All rights reserved. @@ -423,7 +423,7 @@ configAnonFTP(dialogMenuItem *self) vsystem("cp /etc/pwd.db %s/etc && chmod 444 %s/etc/pwd.db", tconf.homedir, tconf.homedir); vsystem("cp /etc/passwd %s/etc && chmod 444 %s/etc/passwd", tconf.homedir, tconf.homedir); vsystem("cp /etc/group %s/etc && chmod 444 %s/etc/group", tconf.homedir, tconf.homedir); - vsystem("chown -R %s.%s %s/pub", FTP_NAME, tconf.group, tconf.homedir); + vsystem("chown -R root.%s %s/pub", tconf.group, tconf.homedir); } else { msgConfirm("Unable to create FTP user! Anonymous FTP setup failed."); |