My computer's operating system is Windows. I use "my_lastname.myfirst_name" login to access to my windows user session. For my new Django python project, I'm using ubuntu OS in a virtual machine. I'm trying to get my login windows from the virtual machine. To do this i used these examples:
>> import pwd
>> user_name = pwd.getpwuid( os.getuid() )[ 0 ]
>> import socket
>> user_name = socket.gethostname()
The above blocs of code give me the localhost name of the ubuntu machine.
How can i access to windows session username from the ubuntu guest OS with python ?