Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[permission] bon groupe et permission denied ! (résolu)
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
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Tue Mar 01, 2005 8:45 pm    Post subject: [permission] bon groupe et permission denied ! (résolu) Reply with quote

Bonsoir, je viens recemment d'installer apache et le dossier est /var/www/localhost/htdocs.
Comme cela appartient à root, j'ai créer un nouveau groupe :
groupadd web
Ensuite j'ai ajouté mon utilisateur à ce groupe (honte à moi je me souvenais plus comment alors j'ai fait à la barbare, j'ai modifié à la main le /etc/group).
Bon il a fallu que je me relogue pour que les changements soient pris en compte.
Une fois relogué, je fais en root :
chgrp web /var/www/localhost/htdocs/*
J'ai donc ça :
Code:
ls -ld ../htdocs/                                                       
drwxr-xr-x 
3 root web 1352 mar  1 19:36 ../htdocs/
ls -ld index.html.fr                                                     
-rw-r--r--  1 root web 1505 mar  1 18:18 index.html.fr

J'appartient au groupe web, alors pourquoi je ne peux pas supprimer les fichiers dans ce dossier ?!
Pouvez vous m'expliquer (je dois être fatigué la...) comment faire pour que l'utilisateur lucky puisse avoir toutes les permissions dans /var/www/localhost/htdocs mais ne peut pas détruire htdocs. plz :) (je suis fatigué et j'ai perdu mon bouquin la alors bon... soyez indulgent ^^)
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm


Last edited by bosozoku on Wed Mar 02, 2005 6:02 am; edited 2 times in total
Back to top
View user's profile Send private message
yuk159
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1802
Location: noumea ,nouvelle-caledonie

PostPosted: Tue Mar 01, 2005 8:55 pm    Post subject: Reply with quote

la réponse est simple : le groupe n'as pas les autorisations d'écriture ;)
_________________
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram
Back to top
View user's profile Send private message
billiob
Guru
Guru


Joined: 30 Dec 2004
Posts: 425
Location: Paris, France

PostPosted: Tue Mar 01, 2005 8:58 pm    Post subject: Re: [permission] bon groupe et pourtant permission denied ! Reply with quote

Supprimer = écrire or il y a un problème là
bosozoku wrote:

-rw-r--r-- 1 root web 1505 mar 1 18:18 index.html.fr
-----^

Ajoute un w (de tête chmod g+w /var/www/localhost/htdocs/ )
Pour le reste, je ne sais pas.

EDIT : grillé
_________________
billiob
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Tue Mar 01, 2005 9:01 pm    Post subject: Reply with quote

AAAAAAAAAAAAAAAAAH !! Je vous avais bien dit que j'étais fatigué... En plus j'ai posté ça alors que c'était juste devant mes yeux... mdr. Bon merci de m'avoir décrassé les yeux :) Voila ca marche mieux comme ça ^^
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
Back to top
View user's profile Send private message
yuk159
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1802
Location: noumea ,nouvelle-caledonie

PostPosted: Tue Mar 01, 2005 10:16 pm    Post subject: Reply with quote

bosozoku wrote:
En plus j'ai posté ça alors que c'était juste devant mes yeux...


C'est souvent ce qu'on trouve le moins vite, surtout quand on vient d'aligner les heures de vole ;)
_________________
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram
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