netctl start asks for root password

5

3

Every time I do netctl start Newton (Newton is the name of my wifi network's profile) I get this message:

==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to manage system services or other units.
Authenticating as: root
Password:

If I type the wrong password I get the message:

==== AUTHENTICATION FAILED ===
Failed to start netctl@Newton.service: Access denied

This isn't actually a problem for me because I know my root password, but it strikes me that if I didn't, I wouldn't be able to connect to the internet and that's not right. I'm a sudoer so I should be able to use my own password to connect to the network, but it asks for root's.

How do I make it stop asking for the root password?

Michael Dorst

Posted 2015-07-25T21:57:22.590

Reputation: 285

Phew, it's commom for others, it's not a virus! – Peter Krauss – 2017-04-18T21:22:48.213

Answers

9

So the reason I was being asked for the root password was because I wasn't running the command with sudo. If I do that it won't ask for a password.

Michael Dorst

Posted 2015-07-25T21:57:22.590

Reputation: 285

Yes, netctl aliased with sudo – Alex – 2015-07-26T11:51:44.870

0

Try in visudo

user host= NOPASSWD: /usr/bin/netctl

Use absolute path !

Alex

Posted 2015-07-25T21:57:22.590

Reputation: 5 606

So you mean I need to add that line to the sudoers file? I tried that and it didn't fix the problem. – Michael Dorst – 2015-07-26T00:02:41.370

When I removed the space before NOPASSWD the message changed to Failed to start netctl@Newton.service: Interactive authentication required. – Michael Dorst – 2015-07-26T01:22:00.277

-1

If you simply want to remove PolicyKit,

sudo apt-get remove libpolkit-agent-1-0

ought to make this easier.

viksit

Posted 2015-07-25T21:57:22.590

Reputation: 99