I am trying to change the ownership and permissions of some files (and directories) in the current directory. I tried this:
chown username:groupname .
...expecting that it would affect all the files in the current directory, but instead only affected the directory that I am in (which is the opposite of what I want to do). I want to change it on all the files without affecting the current directory that I am in.
How can I chown and chmod all files in current directory?