I noticed the command
chown -R user:group * ran as root won't affect dot files like .htaccess, unless I specify them one by one, like
chown -R user:group .htaccess
How to make
chown -R user:group * effective on dot files too?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I had to use
chown -R user:group .* because the wildcrd in bash does not expand to dot files by default, unless the dot is explicitly specified.
That behavior may be changed with
shopt -s dotglob, which sets the option to always includes hidden files when expanding filename patterns (known as "globbing").