how can i make a program installed by a normal user ask for the root password and then execute a command only root can execute.
example: i want my application to change the ip.
so i ask the user to give me the root password and i do my work
how can i do that? i want the main idea, it is not necesarry the whole code
thanks a lot