Hacker News new | past | comments | ask | show | jobs | submit login

> nobody is forcing anybody to use sudo

Some folks kind of are; for instance, last time I looked Arch Linux has sudo as part of base so it's hard to remove.

Edit: Sorry, apparently Arch does let you remove sudo (now?). If you substitute in RHEL et al. the general point stands (and I actually checked this time and Rocky 8 makes unhappy noises if you ask it to remove sudo), but my initial example was wrong.




Don't remember it ever being a problem tbh. Haven't had it installed for quite some time (since I discovered doas). I just installed it and then removed to re-check:

  $ yay -Rsn sudo
  checking dependencies...
  :: libisoburn optionally requires sudo: for use with xorriso-dd-target
  :: pacman-contrib optionally requires sudo: privilege elevation for several scripts
  :: refind optionally requires sudo: for privilege elevation in refind-install and refind-mkdefault
  :: wireguard-tools optionally requires sudo: elevate privileges
  :: yay optionally requires sudo: privilege elevation

  Package (1)  Old Version  Net Change

  sudo         1.9.12.p1-1   -7.10 MiB

  Total Removed Size:  7.10 MiB

  :: Do you want to remove these packages? [Y/n]
  :: Processing package changes...
  (1/1) removing sudo                         [###############################################] 100%
  :: Running post-transaction hooks...
  (1/2) Reloading system manager configuration...
  (2/2) Arming ConditionNeedsUpdate...

libisoburn, refind, wg, yay can be elevated by doas or su.

pacman-contrib is a bunch of package development scripts. Your typical user won't have them. Also the previous point applies.


Strange; now I've tried it and it does indeed work. I'm fairly sure I tried that before and it wouldn't let me remove sudo, which was irritating because I switched to using doas and didn't like having sudo around. Assuming my memory isn't failing me, that must have been fixed fairly recently.


https://archlinux.org/packages/core/x86_64/sudo/

Looks like nothing else in core depends on sudo, most packages from extra/community that need it have it as an optional dependency, looks like one can remove sudo on Arch


In Arch sudo is (was? I'm on OpenSUSE TW so I can't check) needed for base-devel, not base.

Arch's base is really minimalist, though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: