Automatic installation of samba fails with "could not find package libpam-smbpass"

Bug #1726143 reported by Paul Smith
This bug affects 9 people
Affects Status Importance Assigned to Milestone
nautilus-share (Ubuntu)
Won't Fix
Sebastien Bacher

Bug Description

I actually have no idea if this is really a Nautilus issue but didn't know where else to file it.

I have a fresh install of ubuntu 17.10. I start nautilus (using File). I right-click on a folder and select "Local Network Share". When I select "Share this folder" it says the sharing service is not installed, so I select "Install Service" and it offers to install samba for me.

I click "install" and it proceeds, then throws up an error dialog:

Could not find package 'libpam-smbpass'

I can see that Samba packages are already installed at this point.

ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: nautilus 1:3.26.0-0ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Oct 22 15:43:28 2017
InstallationDate: Installed on 2017-10-21 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
SourcePackage: nautilus
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paul Smith (psmith-gnu) wrote :
affects: nautilus (Ubuntu) → nautilus-share (Ubuntu)
Revision history for this message
Hank Castello (hank-compusolver) wrote :

I have this same issue with Ubuntu 17.10

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus-share (Ubuntu):
status: New → Confirmed
Revision history for this message
Jim MacDiarmid (jim.macdiarmid) wrote :

I'm getting this too. Just saw this post while looking to see if this has been fixed or if anyone has any work-arounds.

Revision history for this message
Alexander (alaut) wrote :

I have the same issue. Created a fresh install of Ubuntu 17.10, changed to automatic mount options. Wanted to shared media Drive but got this notice " Could not find package 'libpam-smbpass'.

I am using links to access folders in these drives via home folder but I do not belive this should affect the install of the samba package itself.

Revision history for this message
Robert Rothermel (thirdender) wrote :

I found a thread at that mentions the libpam-smbpass package was removed. Guest shares can still be created through Nautilus, but password protected shares cannot. Shares can be manually created by editing /etc/samba/smb.conf, but this isn't a very GUI experience...

Changed in nautilus-share (Ubuntu):
importance: Undecided → High
tags: added: rls-bb-incoming
Revision history for this message
Sam Webster (sam+-) wrote :

This is still an issue in yesterday's build of 18.04

Will Cooke (willcooke)
Changed in nautilus-share (Ubuntu):
assignee: nobody → Sebastien Bacher (seb128)
tags: removed: rls-bb-incoming
Revision history for this message
Tim Lunn (darkxst) wrote :

With the removal of the pam-smbpass module there is no longer any syncing of Ubuntu/System accounts into Samba. This means to get password protected shares working after installing samba the user would need to run:

sudo smbpasswd -a <username>

Keeping in mind that there is password sync the other way (on by default in the Ubuntu shipped samba config atleast) and the above command will also change you Ubuntu login password if you enter a different password.

After that nautilus-share should work as normal for both guest and protected user shares.

pam_winbind was proposed at the time of removal as the replacement, but I don't think that will work on a standalone system that is not going to support ldap.

So I guess the best we can do here is:
  - stop trying to install libpam-smbpass package
  - pop-up a dialog instructing the user to run the smbpasswd command or better pop-up a dialog allowing the user to set their samba password (using debconf maybe?)

I will upload a fix for the first part, but the second part will need some design consideration and probably a UIFe.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nautilus-share - 0.7.3-2ubuntu3

nautilus-share (0.7.3-2ubuntu3) bionic; urgency=medium

  * debian/patches:
    - 02_install_missing_samba.patch, 03_use_apturl.patch:
       Dont install libpam-smbpass this package no longer
       exists in the archive. Also don't try and restart
       session with obsolete gnome-session-save command (LP: #1726143).
  * debian/smb.conf: security=share has been removed use
    security=user instead in example file.
  * debian/control: Bump standards version to 4.1.3, no changes

 -- Tim Lunn <email address hidden> Sun, 01 Apr 2018 17:21:46 +1000

Changed in nautilus-share (Ubuntu Bionic):
status: Confirmed → Fix Released
Revision history for this message
Tim Lunn (darkxst) wrote :

Changing back to confirmed, we still need to work out what to do with smbpasswd.

Changed in nautilus-share (Ubuntu Bionic):
status: Fix Released → Confirmed
Revision history for this message
Arup (arup-chowdhury) wrote :

Also need to add basic smbclient in other Ubuntu installations to get Samba printers working.

Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue described in the topic got resolved, we don't plan to fix more in bionic at this time

Changed in nautilus-share (Ubuntu Bionic):
status: Confirmed → Won't Fix
Changed in nautilus-share (Ubuntu):
assignee: Sebastien Bacher (seb128) → nobody
Revision history for this message
Ivan Ogai (ubuntu-yd) wrote :

This bug hits me on Ubuntu 16.04 too

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.