Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing the IP address of a server using CGI bash commands

Status
Not open for further replies.

213wayne

Programmer
Jan 22, 2012
1
0
0
Hi.

I am a newbie.

Is it possible to Change the IP address of a server using CGI bash commands?

If it is, can some one give me basic CGI code to do this?

Please assist
 
Hi

213wayne said:
Is it possible to Change the IP address of a server using CGI bash commands?
The CGI indicates only the way the script communicates with its environment.

Your question would be better asked as :
[ul]
[li]Is it possible to Change the IP address of a server using bash commands? - Yes. See [tt]ifconfig[/tt]. Or see your distribution's network configuration tool.[/li]
[li]Is a CGI script allowed to run commands which change the IP address ? - Possible, but definitely should not. Changing IP address should require root privileges and CGI scripts should never acquire root privileges.[/li]
[/ul]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top