[systemd-bugs] [Bug 88286] New: RFE: loginctl: add GroupsMember=GroupName1(GID1), GroupName2(GID2), ..., GroupNameN(GIDN)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Jan 11 02:37:48 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88286

            Bug ID: 88286
           Summary: RFE: loginctl: add GroupsMember=GroupName1(GID1),
                    GroupName2(GID2),...,GroupNameN(GIDN)
           Product: systemd
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
          Assignee: systemd-bugs at lists.freedesktop.org
          Reporter: mikhail.kasimov at gmail.com
        QA Contact: systemd-bugs at lists.freedesktop.org

Having a result of 'loginctl show-user'
=====
k_mikhail at 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
Service=user at 1000.service
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 at 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 at linux-mk500:~>
=====

So, te idea is to add GroupsMember=GroupName1(GID1),
GroupName2(GID2),...,GroupNameN(GIDN) in 'loginctl show-user':
=====
k_mikhail at 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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20150111/cb981b47/attachment.html>


More information about the systemd-bugs mailing list