Retourner au contenu associé (entrée de forum : Création de fichier dans le groupe adéquat...)
Posté par Damien Pobel (site web personnel) le 25 août 2008 à 00:11. En réponse au message Création de fichier dans le groupe adéquat.... Évalué à 10.
chmod g+s ton_dossier
$ mkdir test $ sudo chgrp www-data test $ cd test $ touch file $ ls -l file total 0 -rw-r--r-- 1 tigrou www-data 0 2008年08月24日 22:10 file
https://damien.pobel.fr
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# chmod g+s tondossier
Posté par Damien Pobel (site web personnel) . En réponse au message Création de fichier dans le groupe adéquat.... Évalué à 10.
chmod g+s ton_dossier
tout ce qui sera créer dans ton_dossier aura le même groupe propriétaire que ton_dossier.
Exemple :
$ mkdir test
$ sudo chgrp www-data test
$ cd test
$ touch file
$ ls -l file
total 0
-rw-r--r-- 1 tigrou www-data 0 2008年08月24日 22:10 file
https://damien.pobel.fr