View previous topic :: View next topic |
Author |
Message |
Poischack Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/94217924244000502bc8.gif)
Joined: 23 Mar 2005 Posts: 275 Location: (FR) Colmar
|
Posted: Mon Mar 28, 2005 12:57 am Post subject: [mod_userdir] chmod 701 ??? |
|
|
Bonsoir,
je suis en train de configurer apache2 et je me retrouve face à un truc étrange:
j'ai activé le module userdir, j'ai créer un dossier public_html dans mon home,
je fais un chmod 711 public_html en me disant que ça ne nécéssitais que des droits
de lecture, mais si je vais sur la page j'ai droit à un 403, je dois faire un chmod 701 sur mon public_html
pour ne pas avoir d'erreur.
Cela me parais un peu étrange, c'est normal ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlight Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/34498084446f6e929bedfd.jpg)
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Tue Mar 29, 2005 7:15 am Post subject: |
|
|
Ben une page html ça se lit, ça s'execute pas donc chmod 744
rappel :
--------
4 = lecture
2 = écriture
1 = execution
Last edited by Enlight on Tue Mar 29, 2005 1:21 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Poischack Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/94217924244000502bc8.gif)
Joined: 23 Mar 2005 Posts: 275 Location: (FR) Colmar
|
Posted: Tue Mar 29, 2005 10:27 am Post subject: |
|
|
heu 4 c'est pas lecture et 2 écriture ?
je vais détailler un peu:
je n'ai pas touché à la partie mod_userdir (elle est active et ok)
$ cd
$ mkdir public_html
$ touch public_html/index.html
http://ip/~user/index.html ok
$ chmod 744 public_html
plus ok
$ chmod 711 public_html
ok
enfin c'ets peut etre normal mais ça m'a étonné. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sireyessire Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/184146537040140c2d83e95.jpg)
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Tue Mar 29, 2005 12:33 pm Post subject: |
|
|
Poischack wrote: | heu 4 c'est pas lecture et 2 écriture ?
|
Si bien sûr que oui:
bon récapitulatif!
- r
read (lecture) 4
- w
write (écriture) 2
- x
execute (exécution) 1
=> lire et écrire = 6
=> tout = 7
=> rien = 0 (facile celle là)
sinon pour ton problème j'avoue que j'ai pas tout suivi: le fichier que tu essaies de voir à travers apache c'est un script ou un bête html? _________________ I never think of the future. It comes soon enough.
Albert Einstein
Try simpler first
Shockley |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guilc Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/190892864153fcc64a2a920.jpg)
Joined: 15 Nov 2003 Posts: 3326 Location: Paris - France
|
Posted: Tue Mar 29, 2005 1:05 pm Post subject: |
|
|
Si tu ne mets pas le "+x" sur public_html (1 donc), apache ne pourra pas rentrer dans le répertoire : les droits d'exécution d'un répertoire servent a autoriser à le traverser
755 marchera aussi, 733 aussi... _________________ Merci de respecter les règles du forum.
Mon site perso : https://www.xwing.info
Mon PORTDIR_OVERLAY : https://gentoo.xwing.info ou layman -a xwing
Last edited by guilc on Tue Mar 29, 2005 1:24 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlight Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/34498084446f6e929bedfd.jpg)
Joined: 28 Oct 2004 Posts: 3519 Location: Alsace (France)
|
Posted: Tue Mar 29, 2005 1:21 pm Post subject: |
|
|
m*** c'est ce que je voulais écrire je modifie |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Poischack Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/94217924244000502bc8.gif)
Joined: 23 Mar 2005 Posts: 275 Location: (FR) Colmar
|
Posted: Tue Mar 29, 2005 5:08 pm Post subject: |
|
|
ok guilc ça je savais pas,merci à toi et aux autres. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|