Folder Sharing dialog does not install libpam-smbpass if samba is already installed

Bug #1096661 reported by Tristan Schmelcher
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
nautilus-share (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

If you open the Folder Sharing dialog in Nautilus and click "Share this folder" while neither the samba nor libpam-smbpass packages are installed, then Nautilus automatically prompts you to install samba and then libpam-smbpass. However, if samba is already installed and libpam-smbpass is not, Nautilus does NOT prompt you to install libpam-smbpass. Rather, it happily allows you to enable sharing on the folder, which results in a broken configuration because it is impossible for any user to authenticate to access the folder without libpam-smbpass installed.

Expected behaviour:

If either samba or libpam-smbpass are not installed, Nautilus should prompt you to install the missing ones.

Actual behaviour:

If samba is installed and libpam-smbpass is not, Nautilus does not prompt you to install libpam-smbpass and users are unable to authenticate to the shared folder.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nautilus-share 0.7.3-1ubuntu2
ProcVersionSignature: Ubuntu 3.2.0-35.55-generic 3.2.34
Uname: Linux 3.2.0-35-generic x86_64
ApportVersion: 2.0.1-0ubuntu15.1
Architecture: amd64
Date: Sun Jan 6 10:57:57 2013
DistributionChannelDescriptor:
 # This is a distribution channel descriptor
 # For more information see http://wiki.ubuntu.com/DistributionChannelDescriptor
 canonical-oem-somerville-precise-amd64-20120703-2
InstallationMedia: Ubuntu 12.04 "Precise" - Build amd64 LIVE Binary 20120703-15:08
MarkForUpload: True
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus-share
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :
Revision history for this message
Chow Loong Jin (hyperair) wrote : Re: [Bug 1096661] [NEW] Folder Sharing dialog does not install libpam-smbpass if samba is already installed

On 07/01/2013 03:06, Tristan Schmelcher wrote:
> [...]
>
> If either samba or libpam-smbpass are not installed, Nautilus should
> prompt you to install the missing ones.

I'm not sure this is really necessary. In the default (fresh install) case, both
samba and libpam-smbpass are not installed, so once if you attempt to share a
folder in that case it will install both packages.

However, when samba is already installed, this means the user has to have either:-
1. Installed samba manually; or
2. Gone through the samba+libpam-smbpass installation and then manually removed
libpam-smbpass.

It's worth noting that libpam-smbpass isn't strictly necessary for the correct
operation of samba or nautilus-share -- I would assume that anyone who has done
either of #1 or #2 would either know how to install libpam-smbpass to get this
functionality, or be able to handle the smbpass management themselves.

Conversely, if we do switch to the "expected behaviour" mentioned above. Users
under scenario #2 would not be able to use nautilus-share without having
libpam-smbpass installed as well. They could, however, use pam-auth-update to
disable libpam-smbpass, so maybe that's not so much of an issue.

--
Kind regards,
Loong Jin

Revision history for this message
Tristan Schmelcher (tschmelcher) wrote :

I don't think it's valid to assume that any user that has installed the samba package manually knows enough to install libpam-smbpass or manage the passwords themselves. In this day and age, the web abounds with many "tutorials" about all aspects of Ubuntu, most of which are grossly out of date or woefully inaccurate. It is entirely possible that the user has manually installed samba but knows next to nothing about its operation.

In my case, I installed samba in advance because I knew that the folder sharing function in Nautilus requires it, but I didn't know that libpam-smbpass is also required. After several reboots and /etc/init.d/smbd restarts, I started hunting on the web for solutions and discovered that I needed libpam-smbpass.

If an experienced user can use pam-auth-update to avoid the use of libpam-smbpass, then I think installing it all the time is the safest approach.

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
erik flister (eflister) wrote :

is libpam-smbpass still available/required? i don't see such a package

https://packages.ubuntu.com/search?keywords=smb&searchon=names&suite=impish&section=all
https://packages.ubuntu.com/search?suite=impish&section=all&arch=any&keywords=samba&searchon=names

but i am having the problem that i can't authenticate to see a share that works when it is set to guest

i fit in the category of knowing i need samba but not knowing how it works. in this case, ubuntu 21.10 nautilus-share installed it for me as far as i remember, when i right clicked to create a local network share. but i think i have installed it pre-emptively/manually in previous installs.

Revision history for this message
erik flister (eflister) wrote :
Revision history for this message
erik flister (eflister) wrote :

this discussion in 2016 observed that its removal would make only guest shares work, as i am experiencing.

https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2016-March/016298.html

Revision history for this message
erik flister (eflister) wrote :
Revision history for this message
erik flister (eflister) wrote :
Revision history for this message
erik flister (eflister) wrote :
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.