Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: shutdown login in /etc/passwd, Login to shutdown machine...< Next Oldest | Next Newest >
khurdp Offline





Group: Members
Posts: 43
Joined: Jan. 2005
Posted: Jan. 05 2006,20:37 QUOTE

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
Back to top
Profile PM YIM 
cbagger01 Offline





Group: Members
Posts: 4264
Joined: Oct. 2003
Posted: Jan. 06 2006,03:55 QUOTE

Does:

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

work if running from an account that is listed in the sudoers file like username 'dsl'?
Back to top
Profile PM 
1 replies since Jan. 05 2006,20:37 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: shutdown login in /etc/passwd

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code