LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to get a standard user to run wvdial (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-get-a-standard-user-to-run-wvdial-4175524766/)

Gad 11-08-2014 02:42 AM

How to get a standard user to run wvdial
 
Hello

I am currently having to login to konsole as root and initiate wvdial as I get a permission denied when executing as a standard user.

How can I get a standard users to execute wvdial? Do I just need to add the "x" permission to /usr/bin/wvdial

Thank you
Marios

ferrari 11-08-2014 02:54 AM

The least secure (but easiest) way is to set the SUID bit with
Code:

sudo chmod u+s /usr/bin/wvdial
so that permissions look like
Code:

ls -l /usr/bin/wvdial
-rwsr-xr-x 1 root root 151464 Sep 28  2013 /usr/bin/wvdial

The better way is to assign a 'dialout' group, and give the required users permission to run wvdial as root as explained here:

https://wiki.archlinux.org/index.php/Wvdial

Gad 11-08-2014 03:20 AM

You are the man! Thank you.


All times are GMT -5. The time now is 02:45 AM.