To: | erlug@xxxxxxxxxxxxxx |
---|---|
Subject: | [Erlug] www-data, php, upload via scp |
From: | Ivan Sergio Borgonovo <mail@xxxxxxxxxxxxxxx> |
Date: | Sun, 29 May 2005 01:22:33 +0200 |
Sarò stanco??? C'è uno scriptino php che genera gallery a partire da file in una directory. Lo scriptino gira come www-data. Vorrei che un gruppo di utenti potesse uploadare files via ssh e che "atterrassero" come leggibili/scrivibili da www-data. Altro problemino... Come può succedere che mi dia permission denied se cerco di leggere scrivere in una dir che ha drwxrwxr-x e l'utente con cui cerco di scrivere è membro del gruppo? www:/var/lib/drupal/files# mkdir test www:/var/lib/drupal/files# chown www-data:users test/ www:/var/lib/drupal/files# chmod 775 test/ www:/var/lib/drupal/files# ls -l total 20 drwxrwxr-x 2 root www-data 4096 2005-05-05 15:35 downloads drwxrwxr-x 3 root www-data 4096 2005-05-28 23:17 images drwxrwxr-x 2 root www-data 4096 2005-04-07 23:51 pictures drwxrwxr-x 2 www-data users 4096 2005-05-29 01:02 test drwxrwxr-x 2 root www-data 4096 2005-05-28 23:17 tmp www:/var/lib/drupal/files# grep user /etc/group /etc/gshadow /etc/group:users:x:100:ivan,grace /etc/gshadow:users:*::ivan,grace grace@www:~$ touch /var/lib/drupal/files/test/pippo touch: cannot touch `/var/lib/drupal/files/test/pippo': Permission denied -- Ivan Sergio Borgonovo http://www.webthatworks.it |
<Prev in Thread] | Current Thread | [Next in Thread> |
---|---|---|
|
Previous by Date: | Re: [Erlug] modconf per hoary, Guido Bolognesi [Zen] |
---|---|
Next by Date: | Re: [Erlug] www-data, php, upload via scp, Filippo Biondi |
Previous by Thread: | [Erlug] modconf per hoary, Massimo Danieli |
Next by Thread: | Re: [Erlug] www-data, php, upload via scp, Filippo Biondi |
Indexes: | [Date] [Thread] [Top] [All Lists] |