I ran
sudo chmod -R 0777 /home/thomas/media/
But when I make new sub directories with transmission they do not have 777 permission.
Any tips?
I ran
sudo chmod -R 0777 /home/thomas/media/
But when I make new sub directories with transmission they do not have 777 permission.
Any tips?
Please don't give 777 permissions. There is (I think) always a better solution. It's very unsafe to give all permissions (especially write permission) to all users. If you need to grant permissions to specific user(s) or program(s), there are safe ways to do that
To set permissions on files that will be created in the future, you can't use chmod
(although there is a permission bit called set-group-id (chmod g+s
) which causes group ownership to be usefully inherited by subdirectories). You use umask
for that.
However, fortunately, there is no umask
setting so permissive as to grant 777 permission; in fact no umask
setting will create executable files, for security reasons...
... which hints that the -R
flag to chmod
is not very useful, since we usually want directories to have execute permission, but we rarely want files to have execute permission. I advise you not to use recursive chmod
unless you know exactly what is in the directory and are sure (ie you are making a well-informed choice) that you want to give those permissions to all of it.