On Sunday 01 July 2018 18:41:16 Mike Bird wrote:
On Sun July 1 2018 18:34:23 William Morder wrote:
I have not had those problems, but thanks for
clarifying my own question:
how to change the permissions of files inside a folder to 600 only (rw
for user), but 700 for the folder (because rwx is necessary to enter the
folder).
You'd need a more complicated command than "chmod -R" to do that right
because you'd need to consider any subfolders.
Right, there's my problem. When I set everything for 600 permissions, I end up
with folders that I can't open; when I set it for 700, I end up with rwx
permissions on files where I don't want that.
Will do some research on this.
The "find" command
can do it but I don't want to post dangerous commands here which might
be used in the wrong circumstances. Anyone who needs to try this can
"man find" and figure out exactly what is needed in their particular
situation.
--Mike
Always willing myself to defer to other people's knowledge and expertise; I am
not afraid of dangerous commands, however, but no doubt you are right about
letting them get out there in the wild.
Also, I take it as a given that EVERYTHING ought to be backed up before
attempting any experiments, or explorations of the unknown parts of your
system. If readers didn't hear me say that before, consider it said now.
I've messed up my machines more times than I can count, but I always had
backups before trying anything new.
Bill