LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 01: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, 04:20 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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, 08: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, 09: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, 07: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: 31
You could also look into sudo,
If you have not installed it, its on the Slack cd.

RefriedBean
 
Old 06-27-2002, 03: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, 09:45 PM   #7
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
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, 04: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



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 07:46 AM
[slackware]Shutting down hylke Linux - Newbie 6 05-13-2004 11:44 AM
New Slackware user ByteWarrior LinuxQuestions.org Member Intro 5 04-12-2004 03:17 AM
Slackware 9.1 user needs help...!!! John Silva Linux - Software 11 10-29-2003 02:07 PM
New slackware user Config Slackware 11 05-31-2002 12:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:57 AM.

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
Open Source Consulting | Domain Registration