The question that I am posting here is quite interesting as it was asked in the interview I attended today. And, honestly, I could not provide a solution.
Ok, here goes the problem statement:
Design a Web Interface that has three text fields:
Code: Select all
IP Address:
Subnet Mask:
Default Gateway:
Code: Select all
Submit
As we all know that these settings can be done by the root user or a user who has those priveleges.
So, finally, how can we achieve it?
The complete web interface needs to be done only in PHP. Some Shell Script can be used if required.