plötzlich alles www-data in /var/www

stefkey

Member
Hi, ich habe meinen neuen vServer Jessie mit nginx und php7-fpm eingerichtet. Ich stelle fest das "irgend etwas" die rechte von /var/www regelt. Weiß jemand woher das kommt? Das kenne ich garnicht von meinem alten Squeeze.
 
kann man diesen Post löschen?

ich mach ab und zu mal chown www-data:www-data .* :mad:

Ich habe mal festgestellt das wenn ich chown www-data:www-data * ausführe werden die .htaccess nicht geändert. Und da hab ich ohne nachzudenken einfach mal .* genommen... grrrr!

Aber warum fasst chown die .htaccess nicht an wenn ich * nutze?
 
Das liegt nicht an Chown, sondern an der Bash oder was auch immer Du verwendest. Die Wildcard wird also schon vorher aufgelöst und da sind versteckte Dateien automatisch ausgenommen. Mehr Details dazu inklusive einer Anleitung zum Ändern dieses Verhaltens gibt es hier: 3.5.8 Filename Expansion

When a pattern is used for filename expansion, the character ‘.’ at the start of a filename or immediately following a slash must be matched explicitly, unless the shell option dotglob is set. When matching a file name, the slash character must always be matched explicitly. In other cases, the ‘.’ character is not treated specially.

See the description of shopt in The Shopt Builtin, for a description of the nocaseglob, nullglob, failglob, and dotglob options.


MfG Christian
 
Back
Top