i386/90057: During installation, the 'chown' command...
Björn König
bkoenig at cs.tu-berlin.de
Wed Dec 7 00:30:08 PST 2005
The following reply was made to PR i386/90057; it has been noted by GNATS.
From: =?ISO-8859-15?Q?Bj=F6rn_K=F6nig?= <bkoenig at cs.tu-berlin.de>
To: bug-followup at FreeBSD.org, BoredOutkast at yahoo.com
Cc:
Subject: Re: i386/90057: During installation, the 'chown' command...
Date: Wed, 07 Dec 2005 09:21:12 +0100
This is a multi-part message in MIME format.
--------------000905010708060207070701
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
The attached patch fixes this problem for all upcoming releases.
--------------000905010708060207070701
Content-Type: text/plain;
name="PR90057-2005120701.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="PR90057-2005120701.diff"
--- src/usr.sbin/sysinstall/anonFTP.c.orig Wed Dec 7 09:08:02 2005
+++ src/usr.sbin/sysinstall/anonFTP.c Wed Dec 7 09:08:19 2005
@@ -286,7 +286,7 @@
if (directory_exists(tconf.homedir)) {
msgNotify("Configuring %s for use by anon FTP.", tconf.homedir);
- vsystem("chmod 555 %s && chown root.%s %s", tconf.homedir, tconf.group, tconf.homedir);
+ vsystem("chmod 555 %s && chown root:%s %s", tconf.homedir, tconf.group, tconf.homedir);
vsystem("mkdir %s/etc && chmod 555 %s/etc", tconf.homedir, tconf.homedir);
vsystem("mkdir -p %s/pub", tconf.homedir);
if (tconf.upload[0]) {
@@ -300,7 +300,7 @@
vsystem("/usr/sbin/pwd_mkdb -d %s/etc %s/etc/master.passwd && chmod 444 %s/etc/pwd.db", tconf.homedir, tconf.homedir, tconf.homedir);
vsystem("rm -f %s/etc/master.passwd %s/etc/spwd.db", tconf.homedir, tconf.homedir);
vsystem("awk -F: '{if ((substr($1, 1, 1) != \"+\") && (substr($1, 1, 1) != \"-\") && ($3 < 100)) print $0}' /etc/group > %s/etc/group && chmod 444 %s/etc/group", tconf.homedir, tconf.homedir);
- vsystem("chown -R root.%s %s/pub", 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.");
--------------000905010708060207070701--
More information about the freebsd-i386
mailing list