Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[mod_userdir] chmod 701 ???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Poischack
Apprentice
Apprentice


Joined: 23 Mar 2005
Posts: 275
Location: (FR) Colmar

PostPosted: Mon Mar 28, 2005 12:57 am    Post subject: [mod_userdir] chmod 701 ??? Reply with quote

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
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Tue Mar 29, 2005 7:15 am    Post subject: Reply with quote

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
View user's profile Send private message
Poischack
Apprentice
Apprentice


Joined: 23 Mar 2005
Posts: 275
Location: (FR) Colmar

PostPosted: Tue Mar 29, 2005 10:27 am    Post subject: Reply with quote

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
View user's profile Send private message
sireyessire
Advocate
Advocate


Joined: 20 Mar 2003
Posts: 2991
Location: back in Paris, France

PostPosted: Tue Mar 29, 2005 12:33 pm    Post subject: Reply with quote

Poischack wrote:
heu 4 c'est pas lecture et 2 écriture ?

Si bien sûr que oui:
bon récapitulatif!
  • r :arrow: read (lecture) :arrow: 4
  • w :arrow: write (écriture) :arrow: 2
  • x :arrow: execute (exécution) :arrow: 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
View user's profile Send private message
guilc
Bodhisattva
Bodhisattva


Joined: 15 Nov 2003
Posts: 3326
Location: Paris - France

PostPosted: Tue Mar 29, 2005 1:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Tue Mar 29, 2005 1:21 pm    Post subject: Reply with quote

m*** c'est ce que je voulais écrire je modifie
Back to top
View user's profile Send private message
Poischack
Apprentice
Apprentice


Joined: 23 Mar 2005
Posts: 275
Location: (FR) Colmar

PostPosted: Tue Mar 29, 2005 5:08 pm    Post subject: Reply with quote

ok guilc ça je savais pas,merci à toi et aux autres.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum