By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 2788

Summary: How do you remove all of Samba without gutting TDE?
Product: TDE Reporter: Michael <mb_trinity_desktop>
Component: tdenetworkAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: wishlist CC: albator78, bugwatch, gamrat.kristopher, mb_trinity_desktop, slavek.banko, wofgdkncxojef
Priority: P5    
Version: R14.0.x [Trinity]   
Hardware: amd64   
OS: Linux   
Compiler Version: TDE Version String:
Application Version: Application Name:
Bug Depends on:    
Bug Blocks: 2696    
Attachments: tdemultimedia: fix detection on cdda include files when using cmake

Description Michael 2017-07-14 18:12:47 CDT
I'm trying to remove all thing Windows.  First up is obviously Samba as it’s had at least 3 security releases this year and I never plan to use it in any way.

apt-get purge samba samba-common python-samba

works okay, but trying to remove the samba-libs or libsmbclient wants to gut seemingly most of the installed TDE packages?  I didn't attempt the rest of what's shown installed.

So?  Without removing a huge chunk of Trinity (and bluetooth, linux-headers, and update-manager?), how do I purge everything related to Samba's client and server?

Thanks,
Michael



root@local [~]# apt-get purge samba-libs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  acpi adept-batch-trinity adept-common-trinity adept-installer-trinity
  adept-manager-trinity adept-notifier-trinity adept-trinity
  adept-updater-trinity amarok-common-trinity amarok-engine-yauap-trinity
  arts-trinity artsbuilder-trinity atlantik-trinity atlantikdesigner-trinity
  bluetooth bluez-gstreamer cdparanoia desktop-effects-tde-trinity
  digikam-trinity fonts-arabeyes foomatic-db-engine foomatic-db-gutenprint
  fortune-mod fortunes-min freeglut3 gir1.2-gmenu-3.0 gtk-qt-engine-trinity
  gtk2-engines-qtcurve gtk3-tqt-engine-trinity gwenview-trinity ijsgutenprint
  k3b-data k3b-data-trinity k3b-trinity kaddressbook-plugins-trinity
  karm-trinity katapult-trinity kbstate-trinity kcron-trinity
  kdbusnotification-trinity kde-style-qtcurve keep-trinity
  kipi-plugins-trinity klipper-trinity kmag-trinity kmenuedit-trinity
  kmilo-trinity kmix-trinity kmousetool-trinity knetworkconf-trinity
  knode-trinity konversation-trinity kooka-trinity kopete-trinity kpf-trinity
  kppp-trinity krdc-trinity krfb-trinity ksig-trinity ksnapshot-trinity
  ksplash-engine-moodin-trinity ksysguard-trinity ksysguardd-trinity
  ksystemlog-trinity ktorrent-trinity kvkbd-trinity kwin-style-qtcurve
  landscape-client landscape-common libavahi-tqt-1 libdb5.3++
  libdbus-tqt-1-1c2 libept0-trinity libflac++6 libgadu3 libgraphicsmagick3
  libifp4 libjs-sphinxdoc libk3b3-extracodecs-trinity libk3b3-trinity libk3b6
  libkcddb4 libkcompactdisc4 libkdcraw3-trinity libkdecorations4abi1
  libkexiv2-3-trinity libkipi0-trinity libkscan1-trinity libmp4v2-2
  libmusicbrainz5-0 libnjb5 libpoppler-tqt librecode0 libruby1.9.1 libscim8c2a
  libslp1 libsmoketqt1-trinity libtdegames1-trinity libtqt-perl libva-glx1
  libxcb-xv0 libxine2-bin libxine2-doc libxine2-ffmpeg libxine2-x libyaml-0-2
  linux-headers-3.13.0-91 linux-headers-3.13.0-91-generic
  linux-headers-generic noatun-plugins-trinity noatun-trinity ocrad oneconf
  oneconf-common poster powermanagement-interface python-configobj
  python-debtagshw python-lxml python-oneconf python-piston-mini-client
  python-pycurl python-pylibacl python-pyxattr python3-oneconf
  python3-piston-mini-client qt4-tqt-theme-engine rdesktop rdiff-backup ruby
  ruby1.9.1 scim-im-agent scim-modules-socket screen
  software-center-aptdaemon-plugins speedcrunch splix strigi-daemon
  sudo-trinity synaptic-trinity tde-style-qtcurve-trinity
  tde-systemsettings-trinity tdeaddons-tdefile-plugins-trinity
  tdeadmin-tdefile-plugins-trinity tdednssd-trinity
  tdegraphics-tdefile-plugins-trinity tdeio-apt-trinity tdeio-locate-trinity
  tdeio-umountwrapper-trinity tdemultimedia-tdefile-plugins-trinity
  tdenetwork-filesharing-trinity tdenetwork-tdefile-plugins-trinity
  tdepim-wizards-trinity tdepowersave-trinity tdeprint-trinity
  tdescreensaver-trinity tdescreensaver-xsavers-trinity tdesudo-trinity
  tdewalletmanager-trinity tqca-tls ttf-malayalam-fonts
  twin-style-crystal-trinity ubuntu-extras-keyring ubuntu-release-upgrader-gtk
  update-manager update-notifier vorbis-tools xscreensaver-data
  xscreensaver-gl yauap
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  amarok-engine-yauap-trinity yauap
Suggested packages:
  gstreamer0.10-gnomevfs
The following packages will be REMOVED:
  amarok-engine-xine-trinity* amarok-trinity* deja-dup-backend-gvfs*
  gvfs-backends* k3b* kaffeine-trinity* kate* kde-runtime* kmail-trinity*
  kmailcvt-trinity* kmplayer-base-trinity* kmplayer-konq-plugins-trinity*
  konq-plugins-trinity* konqueror-nsplugins-trinity* konqueror-trinity*
  kontact-trinity* kubuntu-debug-installer* kubuntu-desktop-trinity*
  libkateinterfaces4* libsmbclient* libxine2* libxine2-misc-plugins*
  libxine2-plugins* polkit-kde-1* python-smbc* qapt-batch* samba-dsdb-modules*
  samba-libs* samba-vfs-modules* software-center*
  system-config-printer-common* system-config-printer-gnome*
  tdeaddons-trinity* tdebase-tdeio-plugins-trinity* ubuntu-desktop*
The following NEW packages will be installed:
  amarok-engine-yauap-trinity yauap
0 upgraded, 2 newly installed, 35 to remove and 4 not upgraded.
Need to get 40.7 kB of archives.
After this operation, 93.3 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.

root@local [~]# apt-get purge smbclient libsmbclient
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package 'smbclient' is not installed, so not removed
The following packages were automatically installed and are no longer required:
  acpi adept-batch-trinity adept-common-trinity adept-installer-trinity
  adept-manager-trinity adept-notifier-trinity adept-trinity
  adept-updater-trinity amarok-common-trinity amarok-engine-yauap-trinity
  arts-trinity artsbuilder-trinity atlantik-trinity atlantikdesigner-trinity
  bluetooth bluez-gstreamer cdparanoia desktop-effects-tde-trinity
  digikam-trinity fonts-arabeyes foomatic-db-engine foomatic-db-gutenprint
  fortune-mod fortunes-min freeglut3 gir1.2-gmenu-3.0 gtk-qt-engine-trinity
  gtk2-engines-qtcurve gtk3-tqt-engine-trinity gwenview-trinity ijsgutenprint
  k3b-data k3b-data-trinity k3b-trinity kaddressbook-plugins-trinity
  karm-trinity katapult-trinity kbstate-trinity kcron-trinity
  kdbusnotification-trinity kde-style-qtcurve keep-trinity
  kipi-plugins-trinity klipper-trinity kmag-trinity kmenuedit-trinity
  kmilo-trinity kmix-trinity kmousetool-trinity knetworkconf-trinity
  knode-trinity konversation-trinity kooka-trinity kopete-trinity kpf-trinity
  kppp-trinity krdc-trinity krfb-trinity ksig-trinity ksnapshot-trinity
  ksplash-engine-moodin-trinity ksysguard-trinity ksysguardd-trinity
  ksystemlog-trinity ktorrent-trinity kvkbd-trinity kwin-style-qtcurve
  landscape-client landscape-common libavahi-tqt-1 libdb5.3++
  libdbus-tqt-1-1c2 libept0-trinity libflac++6 libgadu3 libgraphicsmagick3
  libifp4 libjs-sphinxdoc libk3b3-extracodecs-trinity libk3b3-trinity libk3b6
  libkcddb4 libkcompactdisc4 libkdcraw3-trinity libkdecorations4abi1
  libkexiv2-3-trinity libkipi0-trinity libkscan1-trinity libmp4v2-2
  libmusicbrainz5-0 libnjb5 libpoppler-tqt librecode0 libruby1.9.1 libscim8c2a
  libslp1 libsmoketqt1-trinity libtdegames1-trinity libtqt-perl libva-glx1
  libxcb-xv0 libxine2-bin libxine2-doc libxine2-ffmpeg libxine2-x libyaml-0-2
  linux-headers-3.13.0-91 linux-headers-3.13.0-91-generic
  linux-headers-generic noatun-plugins-trinity noatun-trinity ocrad oneconf
  oneconf-common poster powermanagement-interface python-configobj
  python-debtagshw python-lxml python-oneconf python-piston-mini-client
  python-pycurl python-pylibacl python-pyxattr python3-oneconf
  python3-piston-mini-client qt4-tqt-theme-engine rdesktop rdiff-backup ruby
  ruby1.9.1 scim-im-agent scim-modules-socket screen
  software-center-aptdaemon-plugins speedcrunch splix strigi-daemon
  sudo-trinity synaptic-trinity tde-style-qtcurve-trinity
  tde-systemsettings-trinity tdeaddons-tdefile-plugins-trinity
  tdeadmin-tdefile-plugins-trinity tdednssd-trinity
  tdegraphics-tdefile-plugins-trinity tdeio-apt-trinity tdeio-locate-trinity
  tdeio-umountwrapper-trinity tdemultimedia-tdefile-plugins-trinity
  tdenetwork-filesharing-trinity tdenetwork-tdefile-plugins-trinity
  tdepim-wizards-trinity tdepowersave-trinity tdeprint-trinity
  tdescreensaver-trinity tdescreensaver-xsavers-trinity tdesudo-trinity
  tdewalletmanager-trinity tqca-tls ttf-malayalam-fonts
  twin-style-crystal-trinity ubuntu-extras-keyring ubuntu-release-upgrader-gtk
  update-manager update-notifier vorbis-tools xscreensaver-data
  xscreensaver-gl yauap
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  amarok-engine-yauap-trinity yauap
Suggested packages:
  gstreamer0.10-gnomevfs
The following packages will be REMOVED:
  amarok-engine-xine-trinity* amarok-trinity* deja-dup-backend-gvfs*
  gvfs-backends* k3b* kaffeine-trinity* kate* kde-runtime* kmail-trinity*
  kmailcvt-trinity* kmplayer-base-trinity* kmplayer-konq-plugins-trinity*
  konq-plugins-trinity* konqueror-nsplugins-trinity* konqueror-trinity*
  kontact-trinity* kubuntu-debug-installer* kubuntu-desktop-trinity*
  libkateinterfaces4* libsmbclient* libxine2* libxine2-misc-plugins*
  libxine2-plugins* polkit-kde-1* python-smbc* qapt-batch* software-center*
  system-config-printer-common* system-config-printer-gnome*
  tdeaddons-trinity* tdebase-tdeio-plugins-trinity* ubuntu-desktop*
The following NEW packages will be installed:
  amarok-engine-yauap-trinity yauap
0 upgraded, 2 newly installed, 32 to remove and 4 not upgraded.
Need to get 40.7 kB of archives.
After this operation, 68.2 MB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.


root@local [~]# aptitude search samba*
p   dpsyco-samba                                        - Automate administration of access to samba
p   gadmin-samba                                        - GTK+ configuration tool for samba
p   gadmin-samba:i386                                   - GTK+ configuration tool for samba
p   gadmin-samba-dbg                                    - GTK+ configuration tool for samba (debug)
p   gadmin-samba-dbg:i386                               - GTK+ configuration tool for samba (debug)
p   gosa-plugin-samba                                   - samba3 plugin for GOsa²
p   python-samba                                        - Python bindings for Samba
p   python-samba:i386                                   - Python bindings for Samba
v   python2.7-samba                                     -
v   python2.7-samba:i386                                -
pB  samba                                               - SMB/CIFS file, print, and login server for Unix
p   samba:i386                                          - SMB/CIFS file, print, and login server for Unix
v   samba-client                                        -
v   samba-client:i386                                   -
pi  samba-common                                        - common files used by both the Samba server and client
v   samba-common:i386                                   -
pB  samba-common-bin                                    - Samba common files used by both the server and the client
p   samba-common-bin:i386                               - Samba common files used by both the server and the client
p   samba-dbg                                           - Samba debugging symbols
p   samba-dbg:i386                                      - Samba debugging symbols
p   samba-dev                                           - tools for extending Samba
p   samba-dev:i386                                      - tools for extending Samba
p   samba-doc                                           - Samba documentation
v   samba-doc:i386                                      -
i   samba-dsdb-modules                                  - Samba Directory Services Database
p   samba-dsdb-modules:i386                             - Samba Directory Services Database
i A samba-libs                                          - Samba core libraries
p   samba-libs:i386                                     - Samba core libraries
p   samba-testsuite                                     - test suite from Samba
p   samba-testsuite:i386                                - test suite from Samba
id  samba-vfs-modules                                   - Samba Virtual FileSystem plugins
p   samba-vfs-modules:i386                              - Samba Virtual FileSystem plugins
p   system-config-samba                                 - GUI for managing samba shares and users
p   zentyal-samba                                       - Zentyal - File Sharing and Domain Services


michael@local [~]# rel
NAME="Ubuntu"
VERSION="14.04.5 LTS, Trusty Tahr"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 14.04.5 LTS"
VERSION_ID="14.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
Linux anon 4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:26 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Comment 1 Slávek Banko 2017-07-15 08:34:11 CDT
This is a problem at present. The tdebase package is compiled with smbclient support, so the tdebase-tdeio-plugins package depends on libsmbclient. And libsmbclient package then can depend on samba-libs (in Samba4 case).

The only solution would be to split tdeio-smb plugin into a separate package - for example tdebase-tdeio-plugin-smb. However, even that does not work completely - on libsmbclient depends also libxine2-misc-plugins => libxine2.

If there will be consent, we can split the tdeio-smb into a separate package.
Comment 2 Michael 2017-07-15 15:13:07 CDT
Hi Slávek,

Ofta!  Way more work than I desired :(  Or would even reasonably expect.

Okay, how about just a guide, FAQ entry?, on how to remove as much as possible of the Samba client and server?  

I’ll copy/paste/re-write for a potential FAQ entry:

====

Title:  Removing Samba from TDE

Removing Samba from the Trinity Desktop Environment (TDE) is a problem at present. The tdebase package is compiled with smbclient support, so the tdebase-tdeio-plugins package depends on libsmbclient. And libsmbclient package then can depend on samba-libs.

To remove all Samba packages TDE has no dependencies on, run:

$ sudo apt-get purge samba samba-common python-samba {insert all the other non-dependent samba/smb/??? mods}

====

I’m just trying to reduce security exposures, so dumping most of Samba works for me, and unless y’all at TDE think it’s a security issue, I don’t see any need for pulling the base lib’s if the Samba client/server interface can be removed.  (As I would expect the attack vector would be against the client/server interface, yes?)

Best,
Michael

PS:  I’m blind?  Or I just haven’t used this system enough, would someone change this to a Feature Request?  I can’t see how it’s really a bug.
Comment 3 Francois Andriot 2017-07-22 14:34:20 CDT
Created attachment 2801 [details]
tdemultimedia: fix detection on cdda include files when using cmake

Not for TDE 14.0.4 (still using autotools) but for upcoming 14.0.5 (using cmake), an FTBFS occurs because "cdda_interface.h" is located under '/usr/include/cdda', not '/usr/include'.
Comment 4 Francois Andriot 2017-07-22 14:37:42 CDT
Comment on attachment 2801 [details]
tdemultimedia: fix detection on cdda include files when using cmake

Sorry, wrong bug report. I was targeting 2789, not 2788.
Comment 5 Kristopher 2017-11-14 19:45:28 CST
Ideally, Samba should not be required at all for a base install of TDE. Not everyone needs or wants it.

RPM supports creation of sub-packages, so it's (relatively) simple to split out tdeio-smb and the other tdeio slaves into their own packages when building the RPM packages.

What about on the DPKG end? (I'm not too familiar with DPKG from the packager's side of things, so I don't know if it supports sub-packages or not)
Comment 6 Slávek Banko 2017-11-14 19:50:16 CST
(In reply to Kristopher from comment #5)
> Ideally, Samba should not be required at all for a base install of TDE. Not
> everyone needs or wants it.
> 
> RPM supports creation of sub-packages, so it's (relatively) simple to split
> out tdeio-smb and the other tdeio slaves into their own packages when
> building the RPM packages.
> 
> What about on the DPKG end? (I'm not too familiar with DPKG from the
> packager's side of things, so I don't know if it supports sub-packages or
> not)

See my comment 1.
Comment 7 Slávek Banko 2017-12-02 07:06:16 CST
For Debian / Ubuntu resolved by GIT commits 30b61683 (master) and e8dd79c8 (r14.0.x).
Comment 8 wofgdkncxojef 2018-05-23 19:07:05 CDT
You forgot to close this, or other
distributions are pending?
Comment 9 Slávek Banko 2018-05-23 19:49:23 CDT
I looked at RPM packages - yes, it seems that here is tdeio-smb as a separate package. So the bug report can be closed.