You are not logged in.

#1 2014-12-27 20:25:42

captaincurrie
Member
From: /dev/random
Registered: 2013-11-01
Posts: 82

netctl - Give regular user power to change the network profile

Hello,

I'm trying to create a netctl+dmenu profile switcher.
I need to be able to do this without root (so i can call it from my WM)

Thus my user needs to be able to change the network profile.

How do you do this?

Offline

#2 2014-12-28 02:13:36

ids1024
Member
From: California
Registered: 2013-08-16
Posts: 243
Website

Re: netctl - Give regular user power to change the network profile

You can add something like this to /etc/sudoers

your_user_name ALL = (root) NOPASSWD:/usr/bin/netctl

That way sudo netctl can be run without entering a password.


"Only wimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it."—Linus Torvalds
s/ftp/git/

https://iandouglasscott.com | https://github.org/ids1024 | https://keybase.io/ids1024

Offline

Board footer

Powered by FluxBB