Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-23-2003, 06:58 AM
|
#1
|
|
Member
Registered: Dec 2002
Distribution: Slackware 8.1
Posts: 123
Rep:
|
family access to command poweroff & reboot
I would like to give to my family an access to the commands poweroff & reboot because i think my file system will soon crash.
(my OS - Slackware 8.1)
|
|
|
|
02-23-2003, 07:02 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,676
|
create a file called /etc/shutdown.allow and add the relevant usernames
|
|
|
|
02-23-2003, 07:14 AM
|
#3
|
|
Member
Registered: Dec 2002
Distribution: Slackware 8.1
Posts: 123
Original Poster
Rep:
|
???
it doesn't work !
|
|
|
|
02-23-2003, 08:19 AM
|
#4
|
|
Member
Registered: Jun 2002
Location: South Africa
Distribution: Slackware64-current multilib
Posts: 210
Rep:
|
I have an approach that I use with point-and-click type users in our lab. Just have the machine start up in runlevel 4 (/etc/inittab). KDM (The KDE Display Manager) has very pretty buttons and drop down menus for rebooting and shutting down.
Last edited by fskmh; 02-23-2003 at 08:20 AM.
|
|
|
|
02-23-2003, 09:49 AM
|
#5
|
|
Member
Registered: Feb 2003
Distribution: Debian
Posts: 797
Rep:
|
Re: ???
Quote:
Originally posted by pixelV
it doesn't work !
|
what syntax did you try?
/etc/shutdown.allow is one user per line
but, you have to add the '-a' option to your shutdown command (atleast that's what the manpage says.)
|
|
|
|
02-23-2003, 01:45 PM
|
#6
|
|
Member
Registered: Dec 2002
Distribution: Slackware 8.1
Posts: 123
Original Poster
Rep:
|
i try to type shutdown, but bash show: command not found
???
|
|
|
|
02-23-2003, 02:33 PM
|
#7
|
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
Try
/sbin/shutdown -a now
As a user listed in the /etc/shutdown.allow file.
|
|
|
|
02-23-2003, 02:38 PM
|
#8
|
|
Member
Registered: Dec 2002
Distribution: Slackware 8.1
Posts: 123
Original Poster
Rep:
|
# /sbin/shutdown -a
you must be root to do that
|
|
|
|
02-23-2003, 03:31 PM
|
#9
|
|
Senior Member
Registered: Jun 2002
Location: Northern VA, USA
Distribution: Ubuntu
Posts: 1,180
Rep:
|
Well I tried to set it up and couldn't get it to work. It also appears that it would only restrict the use of Ctrl-Alt-Del from the console through init if the file is present. Otherwise it is the same as regular, any user at the physical console keyboard can press Ctrl-Alt-Del to shutdown the system.
However, if you wish to allow the shutdown command for ALL users then you might want to consider the setuid root the shutdown command.
chmod 7755 /sbin/shutdown
Then any user could type "/sbin/shutdown -ah now" at a prompt and the system would shutdown and halt.
|
|
|
|
02-23-2003, 03:47 PM
|
#10
|
|
Member
Registered: Jan 2003
Location: Ballston Lake, NY
Distribution: Slackware, Debian
Posts: 660
Rep:
|
I've been using the idea of the GDM/XDM/KDM with the GUI in runlevel 4. I do like most of the GDM screens anyways and I thought i might as well, that way it can sit at a nice login with a nice theme and I can shutdown/reboot whenever since the computer is in a secure location.
|
|
|
|
02-24-2003, 05:58 AM
|
#11
|
|
Member
Registered: Dec 2002
Distribution: Slackware 8.1
Posts: 123
Original Poster
Rep:
|
### ctrl+alt+del ###
now my users can reboot computer by pressing ctrl+alt+del keys.
Thanks
|
|
|
|
02-27-2003, 03:11 PM
|
#12
|
|
Member
Registered: Oct 2002
Distribution: Slackware 8.1
Posts: 33
Rep:
|
If they want to turn it off completely, it is safe to cut the power when the console message says "rebooting." I have myself in the sudoers file, so I can "sudo /sbin/halt" which works great. You may not want to give your family actual root privileges, though :-)
If you aren't going to gdm or kdm, as an earlier poster said, ctrl-alt-del and switching off the power at the right moment might be the easiest way. (Again, KDM or GDM would be the *easiest* way. They were built with this kind of situation in mind.)
BB
|
|
|
|
02-27-2003, 03:18 PM
|
#13
|
|
Member
Registered: Feb 2003
Distribution: Slackware 9.0
Posts: 46
Rep:
|
hmm I reinstalled Slack and then the current packages after that and I havn't done anything like this and I can reboot and shutdown as a common user. I couldn't do this before but now I can?! It's good but I don't know now it happend.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|