shutdown login in /etc/passwd


Forum: Other Help Topics
Topic: shutdown login in /etc/passwd
started by: khurdp

Posted by khurdp on Jan. 05 2006,20:37
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

Posted by cbagger01 on Jan. 06 2006,03:55
Does:

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

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

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.