| Post Reply | RetroFed Forum Forum Index » linuxmemes |
| Author | Message | ||
|---|---|---|---|
emmowo
lemmy.world
emmowo@lemmy.worldJoined: 2026-08-21 |
|
||
| 86 Original | |||
exu
feditown.com
exu@feditown.comJoined: 2023-09-29 |
Someone doesn't know about |
||
| 15 | |||
emmowo
lemmy.world
emmowo@lemmy.worldJoined: 2026-08-21 |
Someone doesn't know about -le or -ge in bash
for once this is just me reverting back to caveman brain where i just do > char + 64 and char + 96 tests so I can avoid stdlib on C... |
||
| 8 | |||
|
Buffalox
lemmy.world
Buffalox@lemmy.world Joined: 2023-06-18 |
Ultimate indeed, it doesn't get more secure or accurate than that! |
||
| 8 | |||
|
palordrolap
fedia.io
palordrolap@fedia.io Joined: 2024-08-13 |
I see at least a couple of problems here. The main one is that it assumes that the computer only has one user. This is often true, but not always. Yes, I know it's a joke, but if you really must, read on...If this script is run by a child on a shared computer, and that child chooses not to lie, the child and all adults with access to the machine lose access to /sbin/doas. Likewise if one adult chooses to lie that they're a child, they'll lock themselves and everyone else out, child or not, which is an opportunity for malicious behaviour It also means that something else would need to be done with regard to /etc/enviroment. Even on a one user, two roles machine, that entry really ought to be under /etc/environment.d, but the more robust, multi-age, multi-user solution would need something entirely different to be implemented. /etc/profile would be the wrong place, and editing each user's .profile (or equivalent) and then making it read-only seems like a bad plan too. |
||
| 2 | |||
emmowo
lemmy.world
emmowo@lemmy.worldJoined: 2026-08-21 |
I see at least a couple of problems here. The main one is that it assumes that the computer only has one user. This is often true, but not always. ::: spoiler Yes, I know it's a joke, but if you really must, read on... If this script is run by a child on a shared computer, and that child chooses not to lie, the child and all adults with access to the machine lose access to /sbin/doas. Likewise ...
if we are being kinda serious, we would probably just go with either the systemd user metadata solution, or... (on a scale of insane to less insane):
Obviously the best solution is just educating parents about managing parental controls, but we can't have nice things ig. |
||
| 1 | |||
Digit
lemmy.today
Digit@lemmy.todayJoined: 2026-07-29 |
if only implementation were the problem. |
||
| 2 | |||
|
Ephera
lemmy.ml
Ephera@lemmy.ml Joined: 2020-05-31 |
Someone doesn't know about -le or -ge in bash
Alternatively, |
||
| 2 | |||
| Post Reply |
Back to top |