[Tutor] Get file last user

Susana Iraiis Delgado Rodriguez susana.delgado_s at utzmg.edu.mx
Wed Jul 13 19:23:00 CEST 2011


Hello list!!!

I want to get the last user who accessed to a file, I already have the way
to know who owns the file, but I really need to get this information.
To get file user I'm using: os.environ.get("USERNAME") and to get the
machine host: socket.gethostname()
Is there a way to find out who used the file for the last time?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110713/22cf2374/attachment.html>


More information about the Tutor mailing list