Autor Zpráva
Chuchycek
Profil
Ahoj,
mám problém s gitem, lze nějaký způsobem nastavit, že by se mi při použití: clone, push, pull ukládali soubory pod skupinou www-data.

Díky H.
Jan Tvrdík
Profil
Chuchycek:
Nemůžeš prostě ten Git spustit pod stejným uživatelem jako pod kterým běží PHPko?
Chuchycek
Profil
Jan Tvrdík:
Samořejmě, že mohu, ale pokud to jde jinak, tak bych to rád věděl.
TomášK
Profil
Pomocí setgid* můžeš dědit skupinu rodičovského adresáře. Nastav všem adresářům v repositáří skupinu www-data a +s. Nebo přes ACL jde nastavit výchozí přístupová práva (nejen ugo, ale i pro konkrétní uživatele).

Setting the setgid permission on a directory ("chmod g+s") causes new files and subdirectories created within it to inherit its group ID, rather than the primary group ID of the user who created the file (the owner ID is never affected, only the group ID). Newly created subdirectories inherit the setgid bit.

Zdroj: en.wikipedia.org/wiki/Setuid

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0