<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — [cups] lpadmin group not present in cups-files.conf ?]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=267&amp;type=atom" />
	<updated>2019-10-12T06:34:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=267</id>
		<entry>
			<title type="html"><![CDATA[[cups] lpadmin group not present in cups-files.conf ?]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=1220#p1220" />
			<content type="html"><![CDATA[<p>Hello,</p><p>To setup my printer with :</p><div class="codebox"><pre><code>system-config-printer</code></pre></div><p>I&#039;ve had to enable cupsd service</p><div class="codebox"><pre><code>rc-update add cupsd default</code></pre></div><p>And in :</p><div class="codebox"><pre><code>/etc/cups/cups-files.conf</code></pre></div><p>changed this </p><div class="codebox"><pre><code>[...]

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User daemon
#Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root

[...]</code></pre></div><p>to this :</p><div class="codebox"><pre><code>[...]

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User daemon
Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root lpadmin

[...]</code></pre></div><p>So, uncomment &quot;Group lp&quot; and add &quot;lpadmin&quot; to &quot;SystemGroup&quot;</p><p>then add &quot;lp&quot; &amp; &quot;lpadmin&quot; groups to my username until I realize &quot;lpadmin&quot; was not present. So I added it :</p><div class="codebox"><pre><code>groupadd -r lpadmin</code></pre></div><div class="codebox"><pre><code>gpasswd -a username lpadmin</code></pre></div><p>Now, everything is working fine.</p><p>But I wonder why &quot;lpadmin&quot; group is not present by default as available group and also present in &quot;SystemGroup [...] &quot; (in /etc/cups/cups-files.conf ), with other distro, this is usually set by default.</p><p>I think it would be great to make it default and add a little reminder in CUPS postpkg install to warn the user that he needs to add his username to the lpadmin group to be able to add a printer.</p><p>(If the way I did it is not the correct way, please tell me.)</p>]]></content>
			<author>
				<name><![CDATA[aether]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=326</uri>
			</author>
			<updated>2019-10-12T06:34:54Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=1220#p1220</id>
		</entry>
</feed>
