@Another_username@lemmy.world to Linux@lemmy.ml • edit-21 year agoneed help restoring permissions on my downloads folderlemmy.worldimagemessage-square40fedilinkarrow-up162arrow-down18
arrow-up154arrow-down1imageneed help restoring permissions on my downloads folderlemmy.world@Another_username@lemmy.world to Linux@lemmy.ml • edit-21 year agomessage-square40fedilink
I removed my permissions on my downloads folder using chmod. can anyone help restore back to default? Thanks!
minus-square@phx@lemmy.calinkfedilink26•1 year 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-square@lolcatnip@reddthat.comlinkfedilinkEnglish5•1 year agoIf you use X instead of x it’ll add execution permission to directories without making files executable.
minus-square@phx@lemmy.calinkfedilink1•1 year agoOh yeah I forgot to mention that. It’s important when using wildcards or recursive permissions!
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!