<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Il 03/01/2018 01:12, Tobias Giesen ha scritto:<br>
</p>
<blockquote type="cite"
cite="mid:20180103011229.B08F.7A733E13@gmail.com">
<pre wrap="">I would like to get the user ID for a Linux user name.</pre>
</blockquote>
<br>
You might execute from the application the "/usr/bin/id" command
which should exist in any Linux flavour passing the required user
name ( if it's the current user, UserName :=
GetEnvironmentVariableUTF8('USERNAME'); ) as a parameter and then
parse the resulting output, sort of:<br>
<br>
<i>uid=500(colla) gid=500(colla)
groups=500(colla),3(sys),5(tty),18(dialout)</i><i><br>
</i><br>
Giuliano<br>
<br>
</body>
</html>