• Uncategorized

About python : Getting-username-or-directory-through-sockets-Python

Question Detail

Context: There is a python coding assignment being made that will be uploaded on a course server. Each student will have their own account on this server, and hence their own home directory where they will run their code. They will be able to connect to a different program on the same server through sockets. The program they connect to will be running 24/7 and is common to all of them.

The situation is that we want to keep track of what messages are being sent to this common program and by whom. Is there a way, through sockets or anything, to be able to identify where this message came from (which user or which directory). We have a python program they use to send messages to the common program but if we hardcode the student ID, they can still change the code. They have their own username and password for the course server so I was hoping I could incorporate their linux username somehow. What would be the best way to achieve what I need?

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.