need help restoring permissions on my downloads folder
need help restoring permissions on my downloads folder
I removed my permissions on my downloads folder using chmod.
can anyone help restore back to default?
Thanks!
sudo chmod 755 ~/Downloads
assuming you don't need a recursive solution for subdirectories
73 1 Reply-R to recurse. Good for chmod and chown
8 1 Replyuseful 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 -- {} +
11 0 ReplyDon't give all your files execution permissions.
chmod 644 -R Downloads chmod +x Downloads
4 0 Reply
I love everything about this screenshot
45 2 ReplyThe non proportional font on terminal 🤌
61 2 ReplyI think they should use Comic Sans instead.
22 0 Reply
Thanks y’all! chmod 755 worked! Back to drwxr-xr-x
33 0 ReplyA quick guide to explain what is going on here, and what the numbers mean: https://pbs.twimg.com/media/DaMLUoGXUAI21V6.jpg:large
33 0 ReplyTip: you can also use chmod u+rwx,g+rx,o+rx etc to add permissions
With the initial letters corresponding to "user", "group" and "other", and (r)was, (w)rite, e(x)ecute for the rest.
In the case of directories, x specifies access to files/etc within the directly (read just let's you see them)
You can also use i.e "o-rw" etc etc to remove existing permissions
26 0 ReplyIf you use X instead of x it'll add execution permission to directories without making files executable.
5 0 Reply
I was weirded out by the 12288 filesize. If anyone else is wondering.
So used to seeing 4096 lol
23 0 ReplyHuh, I thought it's a file, but I saw it's a dir. What's up with that odd value?
1 0 ReplySo how i understood from the link it's that in those 4k all file names in that directory are stored. That space can grow if necessary but won't shrink automatically. So i assume that op has alot of files in that directory
5 0 ReplyI believe directories contain pointers to the nodes under them, so they get bigger with lots of things in them.
5 1 Reply
chmod 755 ~/Downloads
17 0 ReplyIf OP did it recursively they would also need -R
12 0 Reply
man chmod?
14 1 Replyman, chmod!
21 1 ReplyChmod my man!
9 1 Reply
chmod 644 -R Downloads chmod +x Downloads
Your welcome
Edit: I just copied the permissions on the other folders
3 0 ReplyDownloads should be drwxr-x- -x ?
3 0 ReplyWhoops I misread the screenshot
3 0 Reply
sudo chmod 777 ~/Downloads
As easy as that!
2 0 Reply