LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Ctrl + Alt + Del = Poweroff , itīs posible???? (https://www.linuxquestions.org/questions/slackware-14/ctrl-alt-del-%3D-poweroff-it%B4s-posible-87947/)

NeoMasteR-CCS 09-01-2003 08:55 AM

Ctrl + Alt + Del = Poweroff , itīs posible????
 
hi.......when i try to shutdown my slack as root i type poweroff then its shutdown, but as non root user when i type poweroff its say that only superuser can power down the system but when i press Ctrl + Alt + Del the system restart.....so Iīm thinking, if i could make shutdown when i press Ctrl + Alt + Del the system will shutdown, but i donīt know how to do this......

someone can help-me with this.............pls


:scratch:

:newbie:

acid_kewpie 09-01-2003 08:57 AM

yeah, just edit /etc/inittab, and change the syntax of the halt command there.

quatsch 09-01-2003 09:00 AM

you have to edit /etc/inittab
look for the line that begins with:
ca::ctrlaltdel:/sbin/shutdown
change it to
ca::ctrlaltdel:/sbin/shutdown -h now
and you'll be able to shutdown by pressing ctrlaltdel. you ahve to be root to edit the file.

NeoMasteR-CCS 09-03-2003 08:51 AM

Hi again....

I edited the file etc/inttab as quatsch told me
and put the command "ca::ctrlaltdel:/sbin/shutdown -h now" and when i pressed ctrl alt del my system doesn't shutdown, it only restart......

maybe it's because my distribution is slackware 9.0 ?!?!?

if i put "shutdown -g0 -y" it will be that it goes to function?

quatsch 09-03-2003 08:58 AM

look at
man shutdown
for the options. I don't think there are -g or -y0 options though.

fye 09-06-2003 05:36 AM

Instead of making ctrl+alt+del shutdown the computer, can we make poweroff or halt be issueable by non-superusers? That would be easier for daily usage, I guess.

Tinkster 09-06-2003 03:32 PM

Quote:

Originally posted by NeoMasteR-CCS
Hi again....

I edited the file etc/inttab as quatsch told me
and put the command "ca::ctrlaltdel:/sbin/shutdown -h now" and when i pressed ctrl alt del my system doesn't shutdown, it only restart......

maybe it's because my distribution is slackware 9.0 ?!?!?

if i put "shutdown -g0 -y" it will be that it goes to function?

It depends on whether your machine allows you
for a shutdown on halt in the first place. This depends
on how APM or ACPI are set-up. By default, the power-
off function in Slack (at least that was the case in 8.x)
in ATM wasn't turned on in the kernels.

Cheers,
Tink

Tinkster 09-06-2003 03:37 PM

Quote:

Originally posted by fye
Instead of making ctrl+alt+del shutdown the computer, can we make poweroff or halt be issueable by non-superusers? That would be easier for daily usage, I guess.
Once again, I do suggest reading the man-pages ...

Quote:

ACCESS CONTROL
shutdown can be called from init(8) when the magic keys
CTRL-ALT-DEL are pressed, by creating an appropriate entry
in /etc/inittab. This means that everyone who has physical
access to the console keyboard can shut the system down.
To prevent this, shutdown can check to see if an autho-
rized user is logged in on one of the virtual consoles. If
shutdown is called with the -a argument (add this to the
invocation of shutdown in /etc/inittab), it checks to see
if the file /etc/shutdown.allow is present. It then com-
pares the login names in that file with the list of people
that are logged in on a virtual console (from
/var/run/utmp). Only if one of those authorized users or
root is logged in, it will proceed. Otherwise it will
write the message
Cheers,
Tink


All times are GMT -5. The time now is 05:17 AM.