[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [du nouveau] Re: gestion des droits d'accès



Le Thursday 26 July 2007 21:22:07 Patrice TOSSAVI, vous avez écrit :
> Franck Joncourt a écrit :
> > On Thu, Jul 26, 2007 at 08:29:53AM +0100, Patrice TOSSAVI wrote:
> >> *Warning*: Unknown: open(/var/lib/php5/sess_Xr49He5rbdFgDxI5D-hHPmmWtDc,
> >> O_RDWR) failed: Permission denied (13) in *Unknown* on line *0*
> >>
> >> *Warning*: Unknown: Failed to write session data (files). Please verify
> >> that the current setting of session.save_path is correct (/var/lib/php5)
> >> in *Unknown* on line *0
> >
> > sid:/var/lib# ls -al php5
> > total 24
> > drwx-wx-wt  2 root     root      4096 2007-07-26 20:06 .
> > drwxr-xr-x 44 root     root      4096 2007-07-26 20:02 ..
> > -rw-------  1 www-data www-data 16296 2007-07-26 20:06 sess_dYUBsE...
> >
> > Pour comparatif, voici ce que cela donne chez moi. Cela aidera peut-être
> > à démarrer !
>
> voici ce qu'il y a chez moi :
>
> root@jupiter:/var/lib# ls -al php5
> total 8
> drwxr-xr-x  2 root root 4096 2007-07-02 22:46 .

Il faut un chmod go-r,a+xwt ici, sur le répertoire /var/lib/php5.
Ça permet à tout le monde de créer des fichiers à l'intérieur, mais interdit 
de supprimer/modifier ceuw qui ne nous appartiennent pas. C'est le sticky bit 
(le t à la fin des droits), comme pour /tmp.
Il n'est valable qu'avec les droits d'écriture à tout le monde.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: