Can't change network scripts as noroot user?

Issues related to configuring your network
Post Reply
jinots
Posts: 1
Joined: 2014/10/29 17:12:26

Can't change network scripts as noroot user?

Post by jinots » 2014/10/29 18:12:36

Hello,

I am developing a java application that need change: ip, gateway, default route ....
But this app don't have a root permission, execute it with daemon user.

How I do the app can edit the files: /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network ?

Thanks!

lightman47
Posts: 1521
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: Can't change network scripts as noroot user?

Post by lightman47 » 2014/10/31 12:13:37

A java app. changing System files - isn't that Windows that allows that? That's one of the many reasons folk switch to Linux.

Post Reply