not_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day agoanother CVElemmy.blahaj.zoneimagemessage-square53linkfedilinkarrow-up1681arrow-down111
arrow-up1670arrow-down1imageanother CVElemmy.blahaj.zonenot_IO@lemmy.blahaj.zone to Programmer Humor@programming.devEnglish · 1 day agomessage-square53linkfedilink
minus-squaredbx12@programming.devlinkfedilinkarrow-up2·15 hours agoThe interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.
minus-squarepoolcritter@pawb.sociallinkfedilinkarrow-up1·7 hours agoUSER is just an environment variable in the environment block like any other; even if Bash didn’t allow changing it, any other program could.
minus-square🌞 Alexander Daychilde 🌞@lemmy.worldlinkfedilinkEnglisharrow-up1·9 hours agoRight? And while Linux generally seems to let you shoot yourself in your foot if you’d really like to, things like --no-preserve-root mean they do put SOME guardrails out there. lol. $USER seems worth making immutable. heh
The interesting thing is that bash allows writing this variable. I would’ve expected it to be readonly for obvious reasons.
USER is just an environment variable in the environment block like any other; even if Bash didn’t allow changing it, any other program could.
Right? And while Linux generally seems to let you shoot yourself in your foot if you’d really like to, things like
--no-preserve-rootmean they do put SOME guardrails out there. lol. $USER seems worth making immutable. heh