LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 06-22-2002, 02:48 PM   #1
ed_rief
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Rep: Reputation: 0
Question 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??
 
Old 06-22-2002, 05:20 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
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
 
Old 06-26-2002, 09:49 AM   #3
upro
LQ Newbie
 
Registered: Jun 2002
Distribution: Slackware 8.0 - 8.1
Posts: 6

Rep: Reputation: 0
ouhhhhh

shutdown is 755 by default, you must give it root SUID:

As root type:
chmod 4755 /sbin/shutdown
 
Old 06-26-2002, 10:29 AM   #4
ed_rief
LQ Newbie
 
Registered: Jun 2002
Posts: 2

Original Poster
Rep: Reputation: 0
Talking

Thanx guys, ill look into it asap.... really appreciate it....
 
Old 06-26-2002, 08:57 PM   #5
RefriedBean
Member
 
Registered: Jun 2002
Location: N 37 33.327 E 126 55.650
Distribution: Gentoo, Slackware, OpenZaurus
Posts: 186

Rep: Reputation: 30
You could also look into sudo,
If you have not installed it, its on the Slack cd.

RefriedBean
 
Old 06-27-2002, 04:15 AM   #6
treebeard
LQ Newbie
 
Registered: Jun 2002
Location: Bucharest, Romania
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
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..
 
Old 07-10-2002, 10:45 PM   #7
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
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.
 
Old 07-12-2002, 05:08 AM   #8
ethanchic
Member
 
Registered: May 2002
Location: CDO, Ph
Distribution: slackware 9.0, LFS-3.3, mandrake 9.2
Posts: 65

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
shutting computer off with own user in tty jaakkop Linux - General 4 10-21-2004 08:46 AM
[slackware]Shutting down hylke Linux - Newbie 6 05-13-2004 12:44 PM
New Slackware user ByteWarrior LinuxQuestions.org Member Intro 5 04-12-2004 04:17 AM
Slackware 9.1 user needs help...!!! John Silva Linux - Software 11 10-29-2003 03:07 PM
New slackware user Config Slackware 11 05-31-2002 01:21 PM


All times are GMT -5. The time now is 05:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration