<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - RFE: loginctl: add GroupsMember=GroupName1(GID1), GroupName2(GID2),...,GroupNameN(GIDN)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=88286">88286</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>RFE: loginctl: add GroupsMember=GroupName1(GID1), GroupName2(GID2),...,GroupNameN(GIDN)
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mikhail.kasimov@gmail.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Having a result of 'loginctl show-user'
=====
k_mikhail@linux-mk500:~> loginctl show-user k_mikhail
UID=1000
GID=100
Name=k_mikhail
Timestamp=Пнд 2015-01-05 02:44:08 EET
TimestampMonotonic=55312165
RuntimePath=/run/user/1000
<a href="mailto:Service=user@1000.service">Service=user@1000.service</a>
Slice=user-1000.slice
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
Linger=no
=====
but sometimes it's needed to know info about gropus that user belongs to. The
traditional way is to use this schema:
=====
k_mikhail@linux-mk500:~> cat /etc/group | grep k_mikhail
vboxusers:x:481:k_mikhail
wheel:x:10:k_mikhail
users:x:100:k_mikhail
k_mikhail@linux-mk500:~>
=====
So, te idea is to add GroupsMember=GroupName1(GID1),
GroupName2(GID2),...,GroupNameN(GIDN) in 'loginctl show-user':
=====
k_mikhail@linux-mk500:~> loginctl show-user k_mikhail
UID=1000
GID=100
Name=k_mikhail
GroupsMember=vboxusers(481), wheel(10), users(1000)
=====
or, if dislpaying of groupnames is insecure, show only UIDs:
GroupsMember=481,10,1000</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>