In my code I use the System.getProperty ("user.name") to get the local user name. But I would like to use my application on a server. And by rotating it instead of returning what was previously returned locally, it is returning "root".
I believe that it is returning the "username" of the server, or my own machine but the User Admin. My question is: Is it possible for me to even run the application via System.getProperty ("user.name") to get the user's access to the server?
If you can not by System.getProperty (), do you have any other means?