[maemo-developers] [maemo-developers] ifup eth0
From: Jonathan Matthews-Levine matthewslevine at gmail.comDate: Thu Jul 6 18:28:06 EEST 2006
- Previous message: [maemo-developers] ifup eth0
- Next message: [maemo-developers] device powers on at 8am every day?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 06/07/06, abhijit.gupta at wipro.com <abhijit.gupta at wipro.com> wrote: > Hi, > I am developing a control panel applet and want to configure IP address from the applet using > ifup eth0 command. But I am not able to execute this command as it needs root permission to execute > the command. > I am running the command from applet using system command. > > system("ifup eth0"). I also tried to execute following script from control panel applet > > sudo gainroot > ifup eth0 > > but it did not work, it changes to root shell but ifup runs in old shell. > Any idea, how to get avoid this permission problem ? How about "sudo ifup eth0"? I'm not sure what you'll need to add to /etc/sudoers to enable this, however ... Jonathan -- Jonathan Matthews-Levine e: matthewslevine at gmail.com
- Previous message: [maemo-developers] ifup eth0
- Next message: [maemo-developers] device powers on at 8am every day?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]