I know that I can get the local user name and home directory by the command
System.getProperty("user.name")
and
System.getProperty("user.home")
I would like to know if there are any commands available in java to obtain a remote system's user name and home directory.