1849894 Members
2784 Online
104047 Solutions
New Discussion

Re: shutdown

 
SOLVED
Go to solution
bossuyt_2
Occasional Advisor

shutdown

create an automatic shutdown on HP 10.20 with CDE
I try to create an account
in passwd file like :

stop::10:20:automatic stop account:/:/sbin/shutdown -h -y

account stop OK but no shutdown

who has an idea ?
6 REPLIES 6
Craig Rants
Honored Contributor

Re: shutdown

What does your /etc/shutdown.allow file say?
If you have a root entry in there then you will have to add your stop account.

May I ask what the purpose behind an account to shutdown the box is? Just curious.

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Eugen Cocalea
Respected Contributor
Solution

Re: shutdown

Hi,

add 'stop' to the /etc/shutdown.allow file.

E.
To Live Is To Learn
harry d brown jr
Honored Contributor

Re: shutdown

Why not just remsh a shutdown from a trusted host?

live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: shutdown

hi,

add stop to /etc/shutdown.allow file

That will take care of it.

Reminds me of Xenix days ;-)
R-
Take it easy.
Joseph Chakkery
Valued Contributor

Re: shutdown

Hello,

Two things to check.

(1) From ur passwd file entry it seems user _id stop is not a super user. Group id 20 is for user group. Only super user can do the shutdown.

(2) Shutdown.allow file should be checked for entry.

Regards
Joe.
Knowledge is wealth
Patrick Wallek
Honored Contributor

Re: shutdown

I know you probably ommitted it from what you put in the post, but I would make sure that there is a passwd associated with the 'stop' user. You don't want just anybody logging in a shutting down the machine.