SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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:
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?
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 ...
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