SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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......
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.
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?
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.