LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-05-2014, 02:08 PM   #1
Adol
Member
 
Registered: Feb 2011
Location: Osaka, Japan
Distribution: Gentoo, Opensuse
Posts: 264

Rep: Reputation: 5
Cant save password authorization


Hello,

Im using a vpn through network manager and I want to start it on startup of KDE. I already have a plan of using a bash script and using:
Code:
nmcli con up id (name of connection)
This works.

The problem is that even though I click on save authorization, it asks me for my root password every time I try to start the VPN. I understand that this can be very useful for security reasons, but this is a home system and I am really not concerned with that.

Is there a way I can stop the check for authorization for network manager?

I do not want authorization for everything to stop. I still want the root password security to continue for other things on the system.

Thanks in advance.
 
Old 06-06-2014, 09:22 PM   #2
casualfred
Member
 
Registered: Aug 2012
Location: USA
Distribution: Slackware64-14.2
Posts: 86

Rep: Reputation: 23
Hello Adol, there is indeed a way to allow a user to run a command with root privileges without a password by editing your sudoers file. First, run in a shell as root:
Code:
# visudo
This will allow you to edit the sudoers file using vi. If you wanted to run nmcli as root, and if your user name is adol, and if nmcli is located in /usr/bin, you would add a line like this to the sudoers file:
Code:
adol ALL=(ALL) NOPASSWD:/usr/bin/nmcli
Hopefully that would fix it.
 
  


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
www-data password / authorization (newb) helsing Linux - Server 8 05-29-2015 09:48 AM
Unable to gain authorization for org.kde.kcontrol.kcmkdm.save (KDE 4.6.3) robertjinx Slackware 3 05-19-2011 03:03 PM
ssmtp: Authorization failed (535 5.7.0 Incorrect username or password {mp049}) hhanff Linux - Software 2 10-20-2008 03:02 AM
when i excute su and password im gettin an authorization error adamf4i Linux - Newbie 12 08-07-2006 09:52 AM
getting a password to save tracie Linux - Software 1 12-29-2004 11:11 PM


All times are GMT -5. The time now is 09:46 PM.

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