pull down to refresh

Hahahaha I thought that was the beauty of Linux!?

173 sats \ 6 replies \ @optimism 9h

No. The beauty of Linux (or actually, UNIX) is that you have userspace. Despite UNIX being so fucking beautiful, nowadays every retard that asks Claude to write something they can take credit for needs administrative system privileges. That's probably the worst thing that happened. Ever.

Because unless you're using permissioned kernelspace, you don't need root. And no, you don't need systemd.

reply
100 sats \ 5 replies \ @BlokchainB 8h

I think this is a bit over my head

reply
77 sats \ 4 replies \ @optimism 8h

Just think like this: every time you do sudo <command> it means that <command> can read everything on your box, including that secret directory you just did chmod 600 on.

I don't think you can avoid using it fully, but just think of the above every time you type sudo.

example:

# id -a
uid=0(root) gid=0(root) groups=0(root)
# ls -lrt /home/opti/.ssh
total 20
-rw------- 1 opti opti 399 Feb  5 13:37 id_ed25519
-rw-r--r-- 1 opti opti  94 Feb  5 13:37 id_ed25519.pub
-rw-rw-r-- 1 opti opti  49 Feb  5 13:39 config
-rw-r--r-- 1 opti opti 928 Feb  6 20:59 known_hosts
# cat /home/opti/.ssh/id_ed25519 | wc
      7      13     399

"oh shit root just counted the characters in my private key"

reply
100 sats \ 3 replies \ @BlokchainB 8h
"oh shit root just counted the characters in my private key"

but how? by using sudo

(sorry for dumb questions)

reply
162 sats \ 2 replies \ @optimism 8h

sudo means: execute the following command as root. (it means "superuser do", because before sudo we only had su - "superuser", without the... do)

opti@server:~$ id -a
uid=1000(opti) gid=1000(opti) groups=1000(opti)

opti@server:~$ sudo id -a
uid=0(root) gid=0(root) groups=0(root)
reply
100 sats \ 1 reply \ @BlokchainB 7h

And root means complete control of the kernel?

reply
79 sats \ 0 replies \ @optimism 7h

Kernel, filesystem, processes... everything that you didn't secure with SELinux policies (which you'd know if you did)

reply