|
From: Yoann M. <inf...@mi...> - 2010-07-22 10:00:25
|
Hi,
Using proftpd 1.3.3a 64 bit on ubuntu 10.04
I want to set a specific Umask to all directory data/ with this
regexp /home/user/monsite/*/data.
The umask must be set for data/ and recursively to all file.
After reading the doc[1][2], I did this :
<Directory /home/user/monsite/*/data>
Umask 007 007
</Directory>
1.http://www.proftpd.org/docs/howto/Directory.html
2.http://www.proftpd.org/docs/directives/linked/config_ref_Directory.html
Directories into "data/" have the good rights but not the "data/"
directory itself, like, I had done "/home/user/monsite/*/data/*"
here the commands I did[3] and the result, and below, log debug server
side[4], client side[5] and conf file[6]
3.http://file.mistur.org/proftpd/command_result.log
4.http://file.mistur.org/proftpd/serveur-debug.log
5.http://file.mistur.org/proftpd/client-debug.log
6.http://file.mistur.org/proftpd/proftpd.conf
the default umask is 027 and the custom umask is 007.
/home/user/monsite/dir1/data should have rwxrwx---, isn't it ?
cf [1] : "Then that Umask value will be used within the
"/path/to/dir/subdir/" directory as well."
to match only subdir, I should add "/* at the end.
cf [1] "applies the section's configuration directives only to the
contents of dir, not to the directory itself."
and
/home/user/monsite/dir2/dir22/data/dir221 souldn't have rwxrwx---
cf [1] : "since * does not expand to some/other/ or /some/other/level/;
they cover multiple levels."
maybe I misunderstand the doc, but if not maybe it's a bug in the
interpretation of the regexp.
if some one can help me.
Thanks
Yoann
|