OVH Cloud OVH Cloud

gestion des droits d'accès

14 réponses
Avatar
Patrice TOSSAVI
Salut,

Je viens de faire une bêtise sur un de mes serveurs:

Voulant donner des droits d'écriture à tous les membres du groupe
www-data sur /var/www, j'ai lancer :

root@ocean:/var/#chmod -R 775 * /www

Conséquence je n'ai plus accès au webmail; voici l'erreur affiché :

*Warning*: session_start():
open(/var/lib/php4/sess_b68c30a6995efeb8f1f0c0ecf8152ed8, O_RDWR)
failed: Permission denied (13) in
*/usr/share/squirrelmail/functions/global.php* on line *333*

*Warning*: session_start(): Cannot send session cookie - headers already
sent by (output started at
/usr/share/squirrelmail/functions/global.php:333) in
*/usr/share/squirrelmail/functions/global.php* on line *333*

*Warning*: session_start(): Cannot send session cache limiter - headers
already sent (output started at
/usr/share/squirrelmail/functions/global.php:333) in
*/usr/share/squirrelmail/functions/global.php* on line *333*

*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/share/squirrelmail/functions/global.php:333) in
*/usr/share/squirrelmail/functions/i18n.php* on line *211*

*Warning*: Cannot modify header information - headers already sent by
(output started at /usr/share/squirrelmail/functions/global.php:333) in
*/usr/share/squirrelmail/src/login.php* on line *54

Comment puis-je m'ensortir? Je suis sur Debian Sarge et la machine sert
de serveur web, mail, dhcp et mysql en intranet; seul l'accès au webmail
(squirrelmail me pose problèmes).
*

--
Cordialement,

Patrice K. TO S S A V I
Informaticien Administrateur Linux
Concepteur-Manager Services Web
Président REFLETBENIN ONG
Tél: +229 97 44 53 55 / 90 95 88 71
041 BP 149 Cotonou - BENIN
http://www.refletbenin.net/ptossavi
http://www.refletbenin.net
http://www.actu.refletbenin.net
Skype: tossavikpatrice.tic
msn: ptossavi@hotmail.fr
yahoo: patricetossavi@yahoo.fr


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to debian-user-french-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

4 réponses

1 2
Avatar
Patrice TOSSAVI
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 :

:/var/lib# ls -al php5
total 8
drwxr-xr-x 2 root root 4096 2007-07-02 22:46 .
drwxr-xr-x 26 root root 4096 2007-07-26 12:48 ..

--
Cordialement,

Patrice K. TO S S A V I
Informaticien Administrateur Linux
Concepteur-Manager Services Web
Président REFLETBENIN ONG
Tél: +229 97 44 53 55 / 90 95 88 71
041 BP 149 Cotonou - BENIN
http://www.refletbenin.net/ptossavi
http://www.refletbenin.net
http://www.actu.refletbenin.net
Skype: tossavikpatrice.tic
msn:
yahoo:


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Gilles Mocellin
--nextPart4845997.XvvNK7FA9m
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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-hHPmmWtD c,
>> 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/php 5)
>> 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 :

:/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, ma is interdit
de supprimer/modifier ceuw qui ne nous appartiennent pas. C'est le sticky b it
(le t à la fin des droits), comme pour /tmp.
Il n'est valable qu'avec les droits d'écriture à tout le monde.

--nextPart4845997.XvvNK7FA9m
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQBGqRelDltnDmLJYdARAhcCAJ9lLIVyIHSgzAOTUbVbO5VKdTtFHACfZblj
vne8yb/O9/OUWvSSrR2l04s =qTlN
-----END PGP SIGNATURE-----

--nextPart4845997.XvvNK7FA9m--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Patrice TOSSAVI
Gilles Mocellin a écrit :


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.



Merci Gilles, tu es un ange.

Mon webmail est maintenant accessible.

--
Cordialement,

Patrice K. TO S S A V I
Informaticien Administrateur Linux
Concepteur-Manager Services Web
Président REFLETBENIN ONG
Tél: +229 97 44 53 55 / 90 95 88 71
041 BP 149 Cotonou - BENIN
http://www.refletbenin.net/ptossavi
http://www.refletbenin.net
http://www.actu.refletbenin.net
Skype: tossavikpatrice.tic
msn:
yahoo:


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Avatar
Franck Joncourt
--bCsyhTFzCvuiizWE
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 26, 2007 at 11:52:37PM +0200, Gilles Mocellin wrote:
Le Thursday 26 July 2007 21:22:07 Patrice TOSSAVI, vous avez écrit  :
> Franck Joncourt a écrit :
> >
> > 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 :
>
> :/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'i nté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.



Je ne connaissais pas _t_ mais seulement _s_.

Merci.

--
Franck Joncourt
http://www.debian.org - http://smhteam.info/wiki/
GPG server : pgpkeys.mit.edu
Fingerprint : C10E D1D0 EF70 0A2A CACF 9A3C C490 534E 75C0 89FE

--bCsyhTFzCvuiizWE
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGqgmnxJBTTnXAif4RAvXwAJ916dc6bkBV/H+AJvXtMsQXFrPZiACgrkeS
nKynUWD9OSDlT4rrf6+2DME =Cvy3
-----END PGP SIGNATURE-----

--bCsyhTFzCvuiizWE--


--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.net/?DebianFrench
Vous pouvez aussi ajouter le mot ``spam'' dans vos champs "From" et
"Reply-To:"

To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
1 2