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. |
|
 |
06-22-2002, 01:48 PM
|
#1
|
|
LQ Newbie
Registered: Jun 2002
Posts: 2
Rep:
|
slackware 8 @ user shutting down
Im using slack 8.0,
there's this problem that i really couldn't settle,
How to let normal users to shutdown the system, cos im getting tired of using #su to shutdown or reboot my pc.??
Anyone care to tell me??
|
|
|
|
06-22-2002, 04:20 PM
|
#2
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Rep:
|
check out the command
ls -l /sbin/shutdown
-rwxr-xr-x 1 root root 14396 Jun 21 2001 /sbin/shutdown
if it's 755 like this one it should work for anyone
if not fix it like this
chmod 755 /sbin/shutdown
|
|
|
|
06-26-2002, 08:49 AM
|
#3
|
|
LQ Newbie
Registered: Jun 2002
Distribution: Slackware 8.0 - 8.1
Posts: 6
Rep:
|
ouhhhhh
shutdown is 755 by default, you must give it root SUID:
As root type:
chmod 4755 /sbin/shutdown
|
|
|
|
06-26-2002, 09:29 AM
|
#4
|
|
LQ Newbie
Registered: Jun 2002
Posts: 2
Original Poster
Rep:
|
Thanx guys, ill look into it asap.... really appreciate it....
|
|
|
|
06-26-2002, 07:57 PM
|
#5
|
|
Member
Registered: Jun 2002
Location: N 37° 33.327 E 126° 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186
Rep:
|
You could also look into sudo,
If you have not installed it, its on the Slack cd.
RefriedBean
|
|
|
|
06-27-2002, 03:15 AM
|
#6
|
|
LQ Newbie
Registered: Jun 2002
Location: Bucharest, Romania
Distribution: Slackware
Posts: 16
Rep:
|
or you could use ctrl-alt-del if you are at the console.
you can configure it to do either a halt or a reboot.
see /etc/inittab.
there was a way you could allow a reboot//shutdown on ctrl-alt-del only if the root is logged on a virtual console..
but i dont remember how..
|
|
|
|
07-10-2002, 09:45 PM
|
#7
|
|
Member
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483
Rep:
|
Quote:
Originally posted by RefriedBean
You could also look into sudo,
If you have not installed it, its on the Slack cd.
RefriedBean
|
The ONLY correct answer as Refried suggested is: sudo
man sudo
man visudo
man sudoers
The allow "every" user own you sytems to run any root level command on you system is a hudge security risk?
And it doesn't make any differnce if you are the ONLY one who uses the systems or note.
|
|
|
|
07-12-2002, 04:08 AM
|
#8
|
|
Member
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65
Rep:
|
edit the /etc/inittab
at the three finger salute section
change to /sbin/shutdown -h now
this will allow all your user to shut down your system by pressing ctrlaltdel.
|
|
|
|
| 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 07:56 AM.
|
|
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
|
|