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: |
yeah, just edit /etc/inittab, and change the syntax of the halt command there.
|
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. |
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? |
look at
man shutdown for the options. I don't think there are -g or -y0 options though. |
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.
|
Quote:
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 |
Quote:
Quote:
Tink |
All times are GMT -5. The time now is 05:17 AM. |