beep/beep.csh

6 lines
227 B
Tcsh

# Allow non-root users to call beep as root via sudo
# when configured without password in `/etc/sudoers.d/beep`.
if (($euid != 0) && (-x /usr/bin/beep) && (-x /usr/bin/sudo)) then
alias beep 'sudo -n /usr/bin/beep'
endif