Quote:
Originally Posted by
jcdole
And it seems to me that files/directories which names start with a dot ( hidden object ) was not all modified.
The problem with your guess is that
UNIX doesn't have hidden files.
When you use
readdir(), it does not hide dot files. Hiding dot files is not a UNIX filesystem feature, UNIX kernel feature, or UNIX library feature.
Its a
shell feature. And ls, grandfathered in from 45 years ago.
Meaning, there are two and
only two ways to implicitly exclude dot-files:
- Getting the list of files from the shell a la chown -R user:pass path/*
- Getting the list of files from ls a la ls | xargs chown -R user:path
The command you listed will never exclude dot-files. Either you did something like the above and omitted it not thinking it relevant, or the dot files have a different owner than you expected, or some filesystem magic like immutable bits is preventing you from changing them.
Just doing
ls -l /path/to/.dotfile and posting the result would have solved this argument for good a week ago.