54
submitted 7 months ago* (last edited 7 months ago) by Another_username@lemmy.world to c/linux@lemmy.ml

I removed my permissions on my downloads folder using chmod.

can anyone help restore back to default?

Thanks!

you are viewing a single comment's thread
view the rest of the comments
[-] eager_eagle@lemmy.world 72 points 7 months ago

sudo chmod 755 ~/Downloads

assuming you don't need a recursive solution for subdirectories

[-] tgxn@lemmy.tgxn.net 7 points 7 months ago

-R to recurse. Good for chmod and chown

[-] possiblylinux127@lemmy.zip 4 points 7 months ago* (last edited 7 months ago)

Don't give all your files execution permissions.

chmod 644 -R Downloads
chmod +x Downloads
[-] tgxn@lemmy.tgxn.net 1 points 7 months ago* (last edited 7 months ago)

That's the same as 755, except you are only setting execute on the folder?

[-] possiblylinux127@lemmy.zip 1 points 7 months ago

Why would you want execute on anything but the folder?

load more comments (3 replies)
load more comments (3 replies)
this post was submitted on 14 Mar 2024
54 points (88.6% liked)

Linux

47953 readers
2638 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS