Bug 1219503 - cups 2.4.7 in Tumbleweed snapshot 20240131 requires "group(ntadmin)" and pulls in samba as the only provider.
Summary: cups 2.4.7 in Tumbleweed snapshot 20240131 requires "group(ntadmin)" and pull...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Printing (show other bugs)
Version: Current
Hardware: x86-64 openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-02 13:03 UTC by Hans Schwimmbeck
Modified: 2024-07-05 08:00 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans Schwimmbeck 2024-02-02 13:03:44 UTC
abcd@opensuse:~> LANG=c zypper se -i --requires "group(ntadmin)"
Loading repository data...
Reading installed packages...

S | Name | Summary                         | Type
--+------+---------------------------------+--------
i | cups | The Common UNIX Printing System | package

abcd@opensuse:~> LANG=c zypper se --provides "group(ntadmin)"
Loading repository data...
Reading installed packages...

S | Name  | Summary                                           | Type
--+-------+---------------------------------------------------+--------
i | samba | A SMB/CIFS File, Print, and Authentication Server | package
   

I had "ntadmin:x:71:" in /etc/group before the upgrade, probably created by cups.
It seems exaggerated to install samba plus a gazillion of dependencies only to fulfill this dependency.
Comment 1 Johannes Meixner 2024-02-02 13:38:05 UTC
It seems this is old leftover stuff
that needs to be cleaned up:

cups.spec contains (excerpts - long line wrapped here):
-----------------------------------------------------------
getent group ntadmin >/dev/null || %{_sbindir}/groupadd 
 -g 71 -o -r ntadmin
-----------------------------------------------------------
and
-----------------------------------------------------------
%dir %attr(0775,root,ntadmin) %{_datadir}/cups/drivers
-----------------------------------------------------------

cups.changes contains (excerpt):
-----------------------------------------------------------
Fri Sep 24 14:04:06 CEST 2004 - kssingvo@suse.de

- added creation of group ntadmin in %pre (bugzilla#45719)
-----------------------------------------------------------
where (bugzilla#45719) is
https://bugzilla.suse.com/show_bug.cgi?id=suse45719
"ntadmin is not in passwd"
(excerpts):
--------------------------------------------------------------
Directory /usr/share/cups/drivers is owned by group "ntadmin",
but this group isnt added any more through samba package.
Therefore installation of cups package complains about
non existing group.
...
The directory might be used by cupsaddsmb.
And it should be part of the cups package.
--------------------------------------------------------------

On my openSUSE Leap 15.5 system with CUPS 2.4.7
/usr/share/cups/drivers is empty.

Furthermore cups.changes contains (excerpt):
-----------------------------------------------------------
- Version upgrade to 2.3b6:
...
  Backward incompatible changes:
  * The cupsaddsmb program has been removed (Issue #5449)
-----------------------------------------------------------
where "Issue #5449" is
https://github.com/apple/cups/issues/5449
"Drop cupsaddsmb and Samba PPD file support"
(excerpts):
-----------------------------------------------------------
michaelrsweet commented on Dec 6, 2018

The Windows PostScript driver is long unsupported
and Samba 4 doesn't support cupsaddsmb. Remove it.
-----------------------------------------------------------
Comment 2 Johannes Meixner 2024-02-02 13:58:38 UTC
Fixed via
https://build.opensuse.org/request/show/1143647
and
https://build.opensuse.org/request/show/1143648
"Removed outdated ntadmin stuff from cups.spec"