Bug 19158

Summary: dbus-specification lacks information about User=<foo> field
Product: dbus Reporter: Sven Herzberg <sven.herzberg>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: enhancement    
Priority: medium CC: chengwei.yang.cn
Version: unspecifiedKeywords: patch
Hardware: Other   
OS: All   
Whiteboard: r+
i915 platform: i915 features:
Attachments: [PATCH] Remove unused key-word of DBus .service file

Description Sven Herzberg 2008-12-18 08:08:06 UTC
When looking through the system-services folder on my machine, I realized that the services often specify "User=root", this field should be documented in the spec.

Please provide me with the information needed to provide a patch...
Comment 1 Havoc Pennington 2009-01-04 08:48:03 UTC
http://lists.freedesktop.org/archives/dbus/2007-June/007874.html
describes the patch that introduced this.

User= and Group= specify the user and group to execute the Exec= line as.
Comment 2 Simon McVittie 2013-10-08 12:09:45 UTC
User is documented in git master (1.7.6).

This is the first time I'd heard of Group, and I'm a D-Bus maintainer... it exists in bus/desktop-file.h, but isn't actually used for anything (system services get the User's gid and supplementary groups, according to the equivalent of `getent passwd` and `getent group`). I'd accept a patch that deleted the #define for Group, if anyone cares enough.
Comment 3 Chengwei Yang 2013-10-09 02:10:10 UTC
Created attachment 87314 [details] [review]
[PATCH] Remove unused key-word of DBus .service file

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.