You are not logged in.

#1 2014-12-17 09:12:21

edm7707
Member
Registered: 2014-10-30
Posts: 6

Group Management for Netctl

1. I'm trying to use Netctl commands without sudo on non-root accounts.  My idea of going about this is to add the particular user to the correct group. However, i'm not sure as to which group this is. I tried adding it network , and systemd-network but to no avail, it still asks for authentication.

2. Netctl list <-- doesn't need authentication
    Netctl stop <--- requires authentication
    Why is this ? ( How do you set authentication for differing command line options?)

Any help or pointers would be appreciated big_smile!

Offline

#2 2014-12-17 21:22:35

mychris
Member
From: Munich
Registered: 2012-09-15
Posts: 68

Re: Group Management for Netctl

Netctl is just a thin wrapper around systemd. All it does is invoke systemd commands like

systemctl start ...
systemctl stop ...

You can look at the source if you want to know how it works.

Offline

#3 2015-06-10 13:32:12

SilentStorm
Member
Registered: 2014-12-16
Posts: 2

Re: Group Management for Netctl

I have the same problem and this doesn't quite answer the question. Is it possible to grant a non-root user the required permissions?

Offline

#4 2015-07-03 12:50:07

revellion
Member
From: Sweden
Registered: 2007-04-10
Posts: 54

Re: Group Management for Netctl

Use sudo with a sudoers file that targets the netctl binary and allows certain groups to use sudo with it?


Hurricane Electric Certified IPv6 Sage

CPU: Core i7-2600 @ 4.0Ghz | RAM: 16GB (4x4GB) | GFX: AMD Radeon R9 290 4096MB VRAM | HDD: 1x 120GB SATA3 Corsair SSD (~500MB/s RW), 1x SATA2 250GB, 1x SATA2 320GB, 1x 180GB SATA3 Intel SSD
*EDIT* Replaced Nvidia GTX 570 for a AMD Radeon R9 290, and added an extra SSD 180GB

Offline

Board footer

Powered by FluxBB