alecsargent@lemmy.zip to linuxmemes@lemmy.world · 18 hours agoIt's all about those little file mode bitslemmy.zipexternal-linkmessage-square32linkfedilinkarrow-up122arrow-down12file-text
arrow-up120arrow-down1external-linkIt's all about those little file mode bitslemmy.zipalecsargent@lemmy.zip to linuxmemes@lemmy.world · 18 hours agomessage-square32linkfedilinkfile-text
minus-squareEphera@lemmy.mllinkfedilinkarrow-up6·14 hours agoYeah, not only does +x leave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.
minus-squareMr.Chewy@lemmy.worldlinkfedilinkarrow-up6·12 hours agoCat doesn’t execute anything tho, it just reads and gives output
minus-squareNominatedNemesis@reddthat.comlinkfedilinkarrow-up2·1 hour agoExcept if you use kitty terminal emulator with unsecure remote access. Issue Then with cat, you could execute arbitrary commands…
minus-squareSaharaMaleikuhm@feddit.orglinkfedilinkarrow-up2·7 hours agoThe cat command executes the cat program.
minus-squarequantumvoid0@programming.devlinkfedilinkEnglisharrow-up2·3 hours agoWhat happens when u try to cat the cat program, is that considered reading or executing
minus-squareNominatedNemesis@reddthat.comlinkfedilinkarrow-up2·1 hour agoBoth, they are not mutually exclusive.
But those are different
Yeah, not only does
+xleave read/write permissions untouched, it also only makes it executable for the user, not for everyone and their cat.Cat doesn’t execute anything tho, it just reads and gives output
Except if you use kitty terminal emulator with unsecure remote access. Issue
Then with cat, you could execute arbitrary commands…
The cat command executes the cat program.
What happens when u try to cat the cat program, is that considered reading or executing
Both, they are not mutually exclusive.