LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-06-2005, 03:47 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
sudo does not work


I want to allow a user to execute some privileged commands.

I setup the sudoer configurations as follows:
First configuration:
# 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.
#

# User privilege specification
root ALL=(ALL) ALL

powah ALL = NOPASSWD: /usr/sbin/tethereal
powah ALL = NOPASSWD: /usr/local/sbin/iwconfig



Second configuration:

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

# User privilege specification
root ALL=(ALL) ALL
powah ALL=(ALL) ALL


Login as powah using the first and then the second configurations, the privileged command can not be executed:
$ /sbin/ifconfig ath0 up
SIOCSIFFLAGS: Permission denied


Login as root, then the privileged command can be executed:
$ su
Password:
# /sbin/ifconfig ath0 up

Last edited by powah; 12-06-2005 at 03:55 PM.
 
Old 12-06-2005, 04:49 PM   #2
int0x80
Member
 
Registered: Sep 2002
Location: Cincinnati
Distribution: Debian GNU/Linux
Posts: 310

Rep: Reputation: 31
Try
Code:
$ sudo /sbin/ifconfig ath0 up
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sudo doesn't work oomfoofoo Debian 3 08-13-2005 07:34 AM
root password doesn't work when I use sudo ... bucovaina78 Linux - Security 5 11-10-2004 02:50 PM
How do I make a iptables chain with sudo work ? rhawi Linux - General 5 06-10-2004 06:02 PM
sudo doesn't work mla Linux - Software 1 10-01-2003 08:24 PM
sudo doesn't work mla Linux - Software 4 10-01-2003 07:34 PM


All times are GMT -5. The time now is 09:25 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration