LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   sudoer for letting a normal user run wireshark (https://www.linuxquestions.org/questions/linux-newbie-8/sudoer-for-letting-a-normal-user-run-wireshark-4175437123/)

jzoudavy 11-14-2012 09:55 AM

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

linosaurusroot 11-14-2012 10:08 AM

The pathname /usr/sbin/wireshark (in the error message) is probably correct unlike /usr/bin/wireshark (in sudoers)?

jzoudavy 11-14-2012 10:31 AM

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

thanks
davy


All times are GMT -5. The time now is 06:35 AM.