LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-14-2012, 09:55 AM   #1
jzoudavy
Member
 
Registered: Apr 2012
Posts: 91

Rep: Reputation: Disabled
sudoer for letting a normal user run wireshark


Hello experts!

I am trying to give a normal user, student, the permission necessary to run wireshark as sudo, I know I have to edit the sudoer file, I added this line:

Code:
student ALL=NOPASSWD:/usr/bin/wireshark
but I keep getting an error:

Code:
[student@cam ~]$ sudo wireshark
[sudo] password for student: 
Sorry, user student is not allowed to execute '/usr/sbin/wireshark' as root on cam.


But obviously that hasn't worked out.

My linux is Red Hat Enterprise Linux Server release 6.1 (Santiago)

thanks
 
Old 11-14-2012, 10:08 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 803
Blog Entries: 2

Rep: Reputation: 203Reputation: 203Reputation: 203
The pathname /usr/sbin/wireshark (in the error message) is probably correct unlike /usr/bin/wireshark (in sudoers)?
 
Old 11-14-2012, 10:31 AM   #3
jzoudavy
Member
 
Registered: Apr 2012
Posts: 91

Original Poster
Rep: Reputation: Disabled
ah ops, thank you linosaurusroot. actually both paths (the sbin and bin) exists, once i changed it to sbin it works now.

thanks
davy
 
  


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
How to run daemon process being a normal user [not root user]. narendra1310 Linux - Software 1 10-26-2009 09:48 AM
Can a normal user run KDE? morphynoman Linux - Newbie 10 11-17-2008 07:09 PM
some commands cant run under normal user mocqueanh Linux - Newbie 1 01-11-2008 08:28 PM
Letting normal user change apache directory nivek7 Linux - General 9 05-04-2004 06:58 PM
How to run Arson as a normal user Mojojo Linux - Software 0 07-10-2003 05:36 PM


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