You are not logged in.

#1 2010-02-25 04:28:51

sdellysse
Member
Registered: 2009-12-15
Posts: 33

Set netcfg to be an SUID executable?

Anyone have any thoughts on this? I know the general mantra that suid'd executables are a bad thing, but I would like a normal user to be able to manage wifi.

A better idea would be to have a netcfg group, but I'm not sure how to do so.

Offline

#2 2010-02-25 06:12:18

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Set netcfg to be an SUID executable?

chgrp network /usr/bin/netcfg2
chmod 4750 /usr/bin/netcfg2

Offline

#3 2010-02-25 13:28:07

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: Set netcfg to be an SUID executable?

Or you could use sudo NOPASSWD on a certain group...

Offline

#4 2010-02-25 15:55:41

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: Set netcfg to be an SUID executable?

# sudoers file.
#
Cmnd_Alias NETMGR = /usr/bin/netcfg,/usr/bin/other/network/stuff

...
root    ALL=(ALL) ALL
...

%network ALL=NOPASSWD: NETMGR

Offline

#5 2010-02-25 16:44:13

sdellysse
Member
Registered: 2009-12-15
Posts: 33

Re: Set netcfg to be an SUID executable?

Profjim wrote:
# sudoers file.
#
Cmnd_Alias NETMGR = /usr/bin/netcfg,/usr/bin/other/network/stuff

...
root    ALL=(ALL) ALL
...

%network ALL=NOPASSWD: NETMGR

Perfect. Thanks.

Offline

Board footer

Powered by FluxBB