From owner-freebsd-questions Sun Jan 30 17:40:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from shorty.ahpcns.com (joemoore-host.dsl.visi.com [209.98.246.61]) by hub.freebsd.org (Postfix) with ESMTP id 60337152F7 for ; Sun, 30 Jan 2000 17:40:57 -0800 (PST) (envelope-from jomor@ahpcns.com) Received: from ahpcns.com (localhost [127.0.0.1]) by shorty.ahpcns.com (Postfix) with ESMTP id 71AB03A327 for ; Sun, 30 Jan 2000 19:40:56 -0600 (CST) Message-ID: <3894E828.ECB0EA13@ahpcns.com> Date: Mon, 31 Jan 2000 01:40:56 +0000 From: jomor Organization: ahpcns X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.0.36 i386) X-Accept-Language: en MIME-Version: 1.0 To: "questions@freebsd.org" Subject: where is umask set for anon ftp user? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want anonymous ftp users to have a umask of 551 so any files uploaded to "incoming" can't be downloaded except by a normal user with a real password. I grepped through "ftpd.c" and found this: #if !defined(CMASK) || CMASK == 0 #undef CMASK #define CMASK 027 #endif int defumask = CMASK; and changed it to: #if !defined(CMASK) || CMASK == 0 #undef CMASK /* #define CMASK 027 */ #define CMASK 551 #endif int defumask = CMASK; Then did a make clean, make, make install, but a test upload showed no change in file permissions. Not being a programmer (working on chapter 3 of "Learn C++ in 24 hours") this was my best shot. I'm thinking either I changed the wrong thing, didn't change enough, or it's being over-ridden by some conf file of which I'm ignorant. If I don't get this working I'll have to resort to a replacement ftp server daemon. Any Ideas? TIA ...jgm To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message