LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-31-2006, 09:48 AM   #1
texerasmo
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
sudoers


Hello,
Excused for my English

I have this problem

I want un user for reboot

I have used sudores

this is my file /etc/sudoers

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#

# Host alias specification
Host_Alias WORKSTATION =192.168.0.0/255.255.255.0

# User alias specification
User_Alias ADMINS = snetoport
User_Alias OPERATORS = snetoport,mino
# Cmnd alias specification
#Cmnd_Alias APACHEEYE = /usr/local/apache2/bin/apachectl start
Cmnd_Alias SHUTDOWN = /usr/sbin/shutdown, /usr/bin/halt, /usr/bin/reboot
# Defaults specification



# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL

# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now


ADMINS ALL = NOPASSWD: ALL
OPERATORS WORKSTAION = SHUTDOWN



then

[root@localhost root]# su snetoport

then

[snetoport@localhost root]$ /usr/bin/reboot
reboot: must be superuser.


help help
Thank
 
Old 07-31-2006, 10:48 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
try
sudo /usr/bin/reboot
 
Old 07-31-2006, 02:24 PM   #3
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Did you notice the typo?
Quote:
OPERATORS WORKSTATION = SHUTDOWN
 
Old 08-04-2006, 09:57 AM   #4
texerasmo
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
try
sudo /usr/bin/reboot

ok the reboot non more problem
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
Regarding SUDOERS hinetvenkat Linux - Networking 1 09-02-2005 01:47 PM
sudoers usa1234 Linux - General 1 10-24-2004 03:07 PM
sudoers???? yenonn Slackware 6 02-10-2004 03:09 AM
Sudoers Fonke0412 Linux - Newbie 3 08-10-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:58 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