public class UnixUser extends Object
| Constructor and Description |
|---|
UnixUser() |
| Modifier and Type | Method and Description |
|---|---|
UnixUser |
fromEtcPasswdLine(String anEtcPasswdLine)
Parses a Line from /etc/passwd and stores each :token: in their field of the user.
|
String |
getCreatedXDGDesktopFolderNameScriptFilename()
Creates a small script, which calls $HOME/.config/user-dirs.dirs then echoes the $XDG_DESKTOP_DIR
in the /tmp folder and returns its pseudo unique absolute filename.
|
String |
getDescription()
Gets the Description aka Full Name
|
String |
getGid()
Gtes the Users Group ID
|
String |
getHome()
Gets the Users Home Directory
|
String |
getId()
Gets the Users UID
|
String |
getName()
Gets the Users Login Name
|
String |
getPasswdDigest()
Gets the users passwd Digest or X if hidden in /etc/shadow
|
String |
getShell()
Gets the users default Login-Shell
|
String |
getXdgDesktopfolder()
Gets the Name of the XDG-Desktop Folder if defined in the $HOME/.config/user-dirs.dirs File as absolute File/Pathname
|
static void |
main(String[] args)
Static Test Main
|
String |
toString()
Dumps the USer fields
|
public String getName()
public String getPasswdDigest()
public String getId()
public String getGid()
public String getDescription()
public String getHome()
public String getShell()
public UnixUser fromEtcPasswdLine(String anEtcPasswdLine)
anEtcPasswdLine - A Passwd Line of the User.public String getCreatedXDGDesktopFolderNameScriptFilename()
public String getXdgDesktopfolder()
public String toString()
public static void main(String[] args)
args - Copyright © 2001–2025. All rights reserved.