Another_username@lemmy.world to Linux@lemmy.ml · edit-28 months agoneed help restoring permissions on my downloads folderlemmy.worldimagemessage-square40fedilinkarrow-up158arrow-down18file-text
arrow-up150arrow-down1imageneed help restoring permissions on my downloads folderlemmy.worldAnother_username@lemmy.world to Linux@lemmy.ml · edit-28 months agomessage-square40fedilinkfile-text
I removed my permissions on my downloads folder using chmod. can anyone help restore back to default? Thanks!
minus-squareAnother_username@lemmy.worldOPlinkfedilinkarrow-up33·edit-28 months agoThanks y’all! chmod 755 worked! Back to drwxr-xr-x
minus-squareRegalPotoo@lemmy.worldlinkfedilinkEnglisharrow-up32·8 months agoA quick guide to explain what is going on here, and what the numbers mean: https://pbs.twimg.com/media/DaMLUoGXUAI21V6.jpg:large
minus-squarephx@lemmy.calinkfedilinkarrow-up25·8 months agoTip: 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 ®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
minus-squarelolcatnip@reddthat.comlinkfedilinkEnglisharrow-up5·8 months agoIf you use X instead of x it’ll add execution permission to directories without making files executable.
minus-squarephx@lemmy.calinkfedilinkarrow-up1·8 months agoOh yeah I forgot to mention that. It’s important when using wildcards or recursive permissions!
Thanks y’all! chmod 755 worked! Back to drwxr-xr-x
A quick guide to explain what is going on here, and what the numbers mean: https://pbs.twimg.com/media/DaMLUoGXUAI21V6.jpg:large
Tip: 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 ®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
If you use X instead of x it’ll add execution permission to directories without making files executable.
Oh yeah I forgot to mention that. It’s important when using wildcards or recursive permissions!