You can submit the following two commands, but be aware that it will set all of your files and folders in your own home folder, which is not necessarily what you want.
Warning: I have not tested these commands, so wait until someone such as Morbius replies in case they find problems with my commands.
Code:
chmod u+rwx,g+rx,g-w,o-rwx ~
find ~ -xdev '(' -type d -exec chmod ug+rwx,o-rwx {} + ')' -o '(' -type f -exec chmod ug+rw,o-rwx {} + ')'
Morbius: I have learned from you in this thread, thank you. Is there a "dummy's guide" to advanced chmod functions, such as chmod 2775 and SGID? I have been experimenting with them and, although I get it to work as you explain, I don't understand how they work.
Bookmarks