Droits sur les fichiers bizarres

FreeWeb est une fonctionnalité permettant à Artica d'administrer des espaces web avec Apache et Pure-ftpd

Droits sur les fichiers bizarres

New postby guidtz » Fri Apr 29, 2011 6:51 am

Hello,

j'ai commencé à tester l'application des droits sur un projet freeweb, voici ce que j'ai mis :
artica_freeweb_droits.png
artica_freeweb_droits.png (35.26 KiB) Viewed 5157 times


et voici ce que cela donne côté fichiers :
artica_freeweb_droits_2.png
artica_freeweb_droits_2.png (125.49 KiB) Viewed 5157 times



Slts
guidtz
 
Posts: 2007
Joined: Sat Jan 17, 2009 3:08 am
Location: Vendée
Artica servers number: 3
Linux System: Debian
Technical skills: A Linux System Administrator

Re: Droits sur les fichiers bizarres

New postby admin » Fri Apr 29, 2011 10:26 am

il est le pb ?

fais un stat d'un répertoire, tu verras le chmod appliqué
User avatar
admin
Site Admin
 
Posts: 11941
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Droits sur les fichiers bizarres

New postby guidtz » Sat Apr 30, 2011 12:20 am

D'après mon exemple :
les répertoires du projet devraient avoir pour droit 2570
les fichiers 0460

or
Code: Select all
# stat test01.cheramy.name
  File: « test01.cheramy.name »
  Size: 4096         Blocks: 8          IO Block: 4096   répertoire
Device: ca02h/51714d   Inode: 385226      Links: 8
Access: (5012/d--S--x-wT)  Uid: (   33/www-data)   Gid: (   33/www-data)

# stat test01.cheramy.name/index.php
  File: « test01.cheramy.name/index.php »
  Size: 397          Blocks: 8          IO Block: 4096   fichier
Device: ca02h/51714d   Inode: 386564      Links: 1
Access: (0714/-rwx--xr--)  Uid: (   33/www-data)   Gid: (   33/www-data)


et les sous-répertoires de www/wp-content devraient avoir pour droits :
pour les répertoires 2770
pour les fichiers 0660

or
Code: Select all
# stat test01.cheramy.name/wp-content/
  File: « test01.cheramy.name/wp-content/ »
  Size: 4096         Blocks: 8          IO Block: 4096   répertoire
Device: ca02h/51714d   Inode: 386572      Links: 8
Access: (5322/d-ws-w--wT)  Uid: (   33/www-data)   Gid: (   33/www-data)

# stat test01.cheramy.name/wp-content/index.php
  File: « test01.cheramy.name/wp-content/index.php »
  Size: 30           Blocks: 8          IO Block: 4096   fichier
Device: ca02h/51714d   Inode: 386583      Links: 1
Access: (1224/--w--w-r-T)  Uid: (   33/www-data)   Gid: (   33/www-data)


cela correspond pas trop

Slts
guidtz
 
Posts: 2007
Joined: Sat Jan 17, 2009 3:08 am
Location: Vendée
Artica servers number: 3
Linux System: Debian
Technical skills: A Linux System Administrator

Re: Droits sur les fichiers bizarres

New postby admin » Sat Apr 30, 2011 12:35 am

Peux tu appliquer celui-ci et faire

Code: Select all
php5 /usr/share/artica-postfix/exec.freeweb.php --perms test01.cheramy.name --force --verbose
Attachments
exec.freeweb.php.tar.gz
(6.74 KiB) Downloaded 270 times
User avatar
admin
Site Admin
 
Posts: 11941
Joined: Wed Oct 17, 2007 7:59 am
Location: France

Re: Droits sur les fichiers bizarres

New postby guidtz » Sat Apr 30, 2011 12:47 am

Voici un extrait de ce que cela donne

Code: Select all
[4757] [DAEMON]::::clladp/clladp:: Instanciate clladp  called by exec.freeweb.php usersMenus() line 370 in ressources/class.ldap.inc
[4757] [DAEMON]::::clladp/clladp:: fsockopen -> 127.0.0.1:389 OK in ressources/class.ldap.inc
[4757] [DAEMON]::::clladp/ldap_perform_connection:: -> ldap_connect(127.0.0.1, 389 )  called by class.users.menus.inc clladp() line 436 in ressources/class.ldap.inc line 306
[4757] [DAEMON]::::clladp/ldap_perform_connection:: ldapbind -> cn=admin,dc=cheramy,dc=name in ressources/class.ldap.inc
[4757] [DAEMON]::::clladp/clladp:: check BuildMasterTree() and ArticaCreate() in ressources/class.ldap.inc
Instanciate userMenus()  called by exec.freeweb.php CheckLibraries() line 28
[4757] [DAEMON]::::clladp/clladp:: Instanciate clladp  called by exec.freeweb.php CheckLibraries() line 28 in ressources/class.ldap.inc
Debug mode TRUE for /usr/share/artica-postfix/exec.freeweb.php --perms test01.cheramy.name --force --verbose
LOCATE_APACHE_BIN_PATH.....:/usr/sbin/apache2
LOCATE_APACHE_CONF_PATH....:/etc/apache2/apache2.conf
a2enmod....................:/usr/sbin/a2enmod

Starting......: Apache checking permission web sites count:1
[4757] [DAEMON]::::clladp/clladp:: Instanciate clladp  called by class.freeweb.inc usersMenus() line 23 in ressources/class.ldap.inc
Instanciate userMenus()  called by exec.freeweb.php freeweb() line 568
Starting......: Apache "test01.cheramy.name" Load DB..
<font color=ff0000><code style='font-size:12px'>
Notice: Undefined index: LimitByIp in /usr/share/artica-postfix/ressources/class.freeweb.inc on line 44
</code></font><br>test01.cheramy.name::WORKING_DIRECTORY -> /var/www/test01.cheramy.name
test01.cheramy.name::/var/www/test01.cheramy.name -> chmod(2570)
DIR: /var/www/test01.cheramy.name -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/upload -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/upload -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/contrib -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/contrib -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/contrib/packaging -> chmod:2570
DIR: /var/www/test01.cheramy.name/phpmyadmin/contrib/packaging -> chmod:2570

....

chmod_files(/var/www/test01.cheramy.name/wp-content,*,0460);
chmod_files(/var/www/test01.cheramy.name/wp-content/tarski,*,0460);
FILE:678:* /var/www/test01.cheramy.name/wp-content/tarski/version.atom -> chmod:0460 (*)
chmod_files(/var/www/test01.cheramy.name/wp-content/plugins,*,0460);
chmod_files(/var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus,*,0460);
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/swfobject.js -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/tagcloud.swf -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/screenshot-1.png -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/wp-cumulus.php -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/screenshot-2.png -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/readme.txt -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/screenshot-3.png -> chmod:0460 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/plugins/wp-cumulus/license.txt -> chmod:0460 (*)
chmod_files(/var/www/test01.cheramy.name/wp-content/plugins/search-unleashed,*,0460);
chmod_files(/var/www/test01.cheramy.name/wp-content/plugins/search-unleashed/view,*,0460);
chmod_files(/var/www/test01.cheramy.name/wp-content/plugins/search-unleashed/view/admin,*,0460);
                                                                                                                                           
...

FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/forestfloor-thumbnail.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/berries-thumbnail.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/sunset.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/path-thumbnail.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/inkwell.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/cherryblossoms-thumbnail.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/sunset-thumbnail.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/cherryblossoms.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/images/headers/fern.jpg -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/index.php -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/license.txt -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/functions.php -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/tag.php -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/header.php -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/twentyten/loop.php -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/themes/index.php -> chmod:0660 (*)
chmod_files(/var/www/test01.cheramy.name/wp-content/upgrade,*,0660);
chmod_files(/var/www/test01.cheramy.name/wp-content/languages,*,0660);
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/continents-cities-fr_FR.po -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/fr_FR.mo -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/ms-fr_FR.po -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/ms-fr_FR.mo -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/fr_FR.po -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/languages/continents-cities-fr_FR.mo -> chmod:0660 (*)
FILE:678:* /var/www/test01.cheramy.name/wp-content/index.php -> chmod:0660 (*)



Il à pas l'air de faire ce qu'il dit qu'il fait :o
guidtz
 
Posts: 2007
Joined: Sat Jan 17, 2009 3:08 am
Location: Vendée
Artica servers number: 3
Linux System: Debian
Technical skills: A Linux System Administrator


Return to FreeWeb

Who is online

Users browsing this forum: No registered users and 1 guest

cron