LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-01-2003, 08:55 AM   #1
NeoMasteR-CCS
LQ Newbie
 
Registered: Jun 2003
Location: Brazil
Distribution: Slackware 10.0
Posts: 6

Rep: Reputation: 0
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




 
Old 09-01-2003, 08:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, just edit /etc/inittab, and change the syntax of the halt command there.
 
Old 09-01-2003, 09:00 AM   #3
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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.
 
Old 09-03-2003, 08:51 AM   #4
NeoMasteR-CCS
LQ Newbie
 
Registered: Jun 2003
Location: Brazil
Distribution: Slackware 10.0
Posts: 6

Original Poster
Rep: Reputation: 0
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?
 
Old 09-03-2003, 08:58 AM   #5
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
look at
man shutdown
for the options. I don't think there are -g or -y0 options though.
 
Old 09-06-2003, 05:36 AM   #6
fye
LQ Newbie
 
Registered: Sep 2003
Distribution: Slackware 9.1
Posts: 13

Rep: Reputation: 0
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.
 
Old 09-06-2003, 03:32 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 09-06-2003, 03:37 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl + Alt + Del ? funkenbooty Linux - Newbie 7 04-26-2007 06:20 AM
Disable CTRL-ALT-DEL dog606 Red Hat 2 04-19-2004 01:25 PM
ctrl.alt.del. in man9.2??? krome Mandriva 3 01-15-2004 11:31 PM
ctrl, alt, del hornet74 Linux - Software 8 01-13-2004 08:06 PM
ctrl, alt, del in Linux psyklops Linux - General 5 04-23-2002 06:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration