Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-14-2012, 10:55 AM   #1
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

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:

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

[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)

Old 11-14-2012, 11:08 AM   #2
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
The pathname /usr/sbin/wireshark (in the error message) is probably correct unlike /usr/bin/wireshark (in sudoers)?
Old 11-14-2012, 11:31 AM   #3
Registered: Apr 2012
Distribution: Ubuntu, SUSE, Redhat
Posts: 188

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.



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

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration