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?? |
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 |
ouhhhhh
shutdown is 755 by default, you must give it root SUID: As root type: chmod 4755 /sbin/shutdown |
Thanx guys, ill look into it asap.... really appreciate it....
|
You could also look into sudo,
If you have not installed it, its on the Slack cd. RefriedBean |
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.. |
Quote:
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. |
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. |