20 ms·
What are some setuid program in popular distros? The only ones I'm aware of are `sudo` and `su`? Do programs such as `systemd` require setuid?
by gnulinux 5y ago
What are some setuid program in popular distros? The only ones I'm aware of are `sudo` and `su`? Do programs such as `systemd` require setuid?
- soneil 5y agoI count 20 on mine. Surprisingly, none of them are systemd. (find / -perm 4000)
- bonzini 5y agosystemd developers generally prefer having a privileged daemon, and an unprivileged program doing RPC with the other. See for example systemd/systemctl, timesyncd/timesyncctl, etc.
- Arnavion 5y ago`find / -perm /4000` to be precise. It's unlikely you have any suid binaries with exactly 4000 mode.
- josephcsible 5y agoThere's a bunch, e.g., mount, umount, fusermount, crontab, passwd, and chsh.