Create a Perl or Python Client/Server Linux Socketbased interface on port 5000
1. The interface should have the following features:
-accept connection from multiple users using sockets
-should only take connections over SSL
-validate the user using the password in /etc/shadow
-create a php session variable upon succesful validation
2. After login should have the following fuctions:
-read rc.local (after clicked, this will display the contents of rc.local to the screen, contents shoudl be properly formated)
-a text box to enter a user, then it will check /etc/pass and write back to the screen saying user exits, or user does not exist
-a textarea to enter a paragraph, and then it will save that paragraph to a file on the server (the file path will be hardcoded)
-a text box to get apache version, this will run httpd -v, and then display the version, it should run the command every time and not save the version info
-a link to replace a line of a file, the path to the file will be hardcode, as will the line, for example, it will replace dog with cat in this line: The big black do$
-a logout button, which closes the php session, but does not affect the socket
Scripts should be very clean and use includes to improve readability.
Scripts shall be well commented and coder shall document any changes made at the server level.
Coder will create a howto document for the employer to recreate/install the application on another server with the same OS and specs.
Source code and documentation will be property of the employer.
Additional Project Description:
08/06/2013 at 19:19 AKDT
Correction: PHP session, can be any HTML session, to keep the user logged in/log the user out at the end.