I removed my permissions on my downloads folder using chmod.
can anyone help restore back to default?
Thanks!
You must log in or register to comment.
sudo chmod 777 ~/Downloads
As easy as that!
sudo chmod 755 ~/Downloads
assuming you don’t need a recursive solution for subdirectories
-R to recurse. Good for chmod and chown
useful for
chown
, less so forchmod
: I almost never want my dirs and files with the same permissions, and I made this mistake a few times.find dir -type f -exec chmod 644 -- {} + find dir -type d -exec chmod 755 -- {} +
If all you need is to restore read permissions, you could use symbolic rather than octal:
chmod -R a+r $DIR
If you don’t want to grant read permissions to everyone you can replace the
a
with whichever applies ofugo
for user, group or other.
Thanks y’all! chmod 755 worked! Back to drwxr-xr-x
man chmod?
man, chmod!