bon j’ai trouvé cette discussion :
phpbuilder.com/board/archive … 54009.html
une personne donne la solution a mon probleme:
[quote]I attempted to explain. I can find no setting for Apache’s umask. Apache inherits the umask of the user who starts it — (at least it does in my case)…the only thing that throws me in your case is that you say your umask is 22 but Apache writes at a more restrictive level…
I read about this after seeing your question this morning. After reading your reply, I tried this:
[color=red][b]1. I set my umask to 22 in the shell (as root). I start Apache. I upload a file, and its permissions are ‘rw-r–r--’.
- I stopped Apache. I set my umask to 11 in the shell (as root). I start Apache. I upload a file, and its permissions are ‘rw-rw-rw-’.[/b][/color]
I can’t tell you for certain that this will work for you, or that it’s what you really want to do, but according to both my reading and my experimentation, it should work. Note that I stopped Apache, not a “graceful” or a “restart”.[/quote]
donc je me log en root
je fais un umask 002
je stop mon serveur: /etc/init.d/lightpd stop
je le relance : /etc/init.d/lightpd start
je vais sur mon site, j’upload le fichier.
Résultat il est encore rw-r–r--
j’ai oublié un truc ??