LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware 8 @ user shutting down (https://www.linuxquestions.org/questions/slackware-14/slackware-8-%40-user-shutting-down-24062/)

ed_rief 06-22-2002 01:48 PM

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??

DavidPhillips 06-22-2002 04:20 PM

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

upro 06-26-2002 08:49 AM

ouhhhhh

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

As root type:
chmod 4755 /sbin/shutdown

ed_rief 06-26-2002 09:29 AM

Thanx guys, ill look into it asap.... really appreciate it....

RefriedBean 06-26-2002 07:57 PM

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

RefriedBean

treebeard 06-27-2002 03:15 AM

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..

pickledbeans 07-10-2002 09:45 PM

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.

ethanchic 07-12-2002 04:08 AM

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.


All times are GMT -5. The time now is 09:37 PM.