I removed my permissions on my downloads folder using chmod.
can anyone help restore back to default?
Thanks!
You must log in or # to comment.
Thanks y’all! chmod 755 worked! Back to drwxr-xr-x
sudo chmod 755 ~/Downloadsassuming 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 $DIRIf you don’t want to grant read permissions to everyone you can replace the
awith whichever applies ofugofor user, group or other.
man chmod?
man, chmod!





