SlackwareThis 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.
I have tried and tried but never been able to get slackware to reboot and halt for non-root users. how the heck am I supposed to do it? this is what I have tried so far:
Code:
akudewan@ranjan404:~$ which reboot
/usr/local/bin/reboot
akudewan@ranjan404:~$ ls -l /usr/local/bin/reboot
lrwxrwxrwx 1 root root 12 2004-06-06 22:24 /usr/local/bin/reboot -> /sbin/reboot*
akudewan@ranjan404:~$ cd /sbin
akudewan@ranjan404:/sbin$ ls -l reboot
lrwxrwxrwx 1 root root 4 2004-07-20 18:31 reboot -> halt*
akudewan@ranjan404:/sbin$ ls -l halt
-rwxrwxrwx 1 root bin 8768 2004-06-21 22:03 halt*
akudewan@ranjan404:/sbin$ su
Password:
root@ranjan404:/sbin# chmod 777 halt
root@ranjan404:/sbin# ls -l halt
-rwxrwxrwx 1 root bin 8768 2004-06-21 22:03 halt
root@ranjan404:/sbin# exit
exit
akudewan@ranjan404:/sbin$ reboot
reboot: must be superuser.
akudewan@ranjan404:/sbin$
just type visudo as it says in the sudoers man page.........
Quote:
man sudoers:
CAVEATS
The sudoers file should always be edited by the visudo
command which locks the file and does grammatical checking.
It is imperative that sudoers be free of syntax errors since sudo
will not run with a syntactically incorrect sudoers file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.