MarcWiki

Le wiki de Marc Meurrens
connexion :
Help > Home >
(no edit access)

Work

Resp. Mise à jour 27 Juin 2009 à 19h53 par
action chmod :
::chmod=mode
:help
:usage
:trace
:dir=repertoire
:file=fichier
:list
:confirm=mode
examples :

::chmod:help = this help
::chmod:usage = idem
::chmod = default to ::chmod=755
::chmod=755 = carefully chmod all local dirs and files to 755
::chmod=777:dir=files/mapage = chmod all local/files/mapage dirs and files to 777
::chmod=777:file=files/mapage/monfichier.zip = chmod local/files/mapage/monfichier.zip to 777
::chmod=777:dir=files:list = chmod all local/files dirs and files to 777 + list recursively all dirs and files in local/files
::chmod=755:dir=files/mapage = chmod local/files/mapage and below to 755
::chmod=none:dir=files/audio:list = do not chmod : just list files in files/audio
::chmod=123:confirm=123 = confirm the stupid value 123 (without 'confirm', only the values 700, 755 and 777 are allowed)

Mind that list dirs and files is not the same as in the action ::files.
In the ::chmod action, list refers to the ls -Ral Linux command.

We suggest you limit yourself to the values
  • '755' in normal operation context
  • or '777' in view of a FTP session.
  • or '700' in paranoid situations.
Values other than 700, 755 and 777 require a confirmation.
Mind that local/config/wakka.config.php allways remains chmod'ed to 777 to make sure it can still be modified by the ftp user.

We suggest, for consistency, to set the config parameter
default_chmod_acl to the value '!'.
Anyway, no matter the acls config value,
the action chmod remains strictly reserved to the administrator :
  • ::chmod=a_bad_value:confirm=a_bad_value could lock your wiki !
  • ::chmod:list could be an attempt against your privacy !

The ::chmod action is designed for wiki's hosted on Linux based systems and may not work on other operating systems (e.g. Windows).