Date: Fri, 07 Sep 2007 08:25:08 +0300 From: Manolis Kiagias <sonicy@otenet.gr> To: Zbigniew Szalbot <zszalbot@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: wrong permission / files get 640 Message-ID: <46E0E0B4.8090503@otenet.gr> In-Reply-To: <94136a2c0709062151k7535c988n9e2ae0decf0d6ca8@mail.gmail.com> References: <94136a2c0709062151k7535c988n9e2ae0decf0d6ca8@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46E0E0B4.8090503>