From owner-freebsd-questions@FreeBSD.ORG Fri Sep 7 05:25:12 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A439E16A419 for ; Fri, 7 Sep 2007 05:25:12 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.93]) by mx1.freebsd.org (Postfix) with ESMTP id 0EE5013C459 for ; Fri, 7 Sep 2007 05:25:11 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from atlantis.dyndns.org (athedsl-92019.home.otenet.gr [87.203.112.193]) by aiolos.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id l875P8d5016748; Fri, 7 Sep 2007 08:25:09 +0300 Message-ID: <46E0E0B4.8090503@otenet.gr> Date: Fri, 07 Sep 2007 08:25:08 +0300 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Zbigniew Szalbot References: <94136a2c0709062151k7535c988n9e2ae0decf0d6ca8@mail.gmail.com> In-Reply-To: <94136a2c0709062151k7535c988n9e2ae0decf0d6ca8@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: wrong permission / files get 640 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 05:25:12 -0000 Zbigniew Szalbot wrote: > Dear all, > > A web directory is chmod 755 but all files which I upload into it by > default get 640 permission which means web users cannot read it, which > means I have to manually change the permissions to 644. Is there any > mask I can set on that directory so that files get 644 when uploaded? > > Directory permissions: > drwxr-xr-x 2 slowo slowo 2048 Sep 7 06:31 pdz > > Thank you in advance! > > Zbigniew Szalbot > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > This looks like a umask problem. What are you using to upload the files? For example proftpd FTP server has a setting to control umask which by default will create world and group readable files (umask 022). If you are using something else, you may want to check the configuration file for a similar setting. If this is a user's home directory, you may also wish to check umask settings in the shell startup files.