two questions about su(1)

From: Paul Vixie <paul_at_redbarn.org>
Date: Wed, 25 Jun 2025 20:26:04 UTC
first, why is the -c check not applied until after a password is collected?

> ➜  ~ su -c zsh
> Password:
> su: only root may use -c

second, what exactly do we think this -c restriction is buying us?

> ➜  ~ su
> Password:
> root@util:/home/vixie # exec zsh
> util#

-- 
Paul Vixie