Other Help Topics :: shutdown login in /etc/passwd



Hello,
 I know I can have a shutdown login in /etc/passwd with UID 0. I have always noticed a shell like /bin/bash or /sbin/sh in the last section. I was wondering if i could have something like /sbin/shutdown -t 120 -h -F. Basically be able to pass arguments to the shutdown command. I know I can do if from a .profile but didn't want to expose a /home/shutdown directory.

Thank you,
Prasad

Does:

sudo /sbin/shutdown -t 120 -h -F

work if running from an account that is listed in the sudoers file like username 'dsl'?


original here.