package samba4 4.0.3+dfsg1-0.1ubuntu1 throws exception when encountering invalid config option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
New
|
Undecided
|
Unassigned | ||
samba4 (Ubuntu) |
Triaged
|
High
|
Unassigned |
Bug Description
I had samba installed on my system before
My computer had been off for a couple days then I started it and could not access files over the network.
Tried to run samba locally and it said not installed, please install.
Switched to root access and appeared to be installing but gave an error code (1)
Setting up samba4 (4.0.3+
Unknown enumerated value 'share' for 'security'
ERROR(runtime): uncaught exception - Unable to load default file
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
lp = sambaopts.
File "/usr/lib/
self.
dpkg: error processing samba4 (--configure):
subprocess installed post-installation script returned error exit status 255
The option "security = share" isn't supported anymore. The package should tell the user as much instead of throwing an unhelpful exception.
ProblemType: Package
DistroRelease: Ubuntu 13.10
Package: samba4 4.0.3+dfsg1-
ProcVersionSign
Uname: Linux 3.10.0-2-generic x86_64
ApportVersion: 2.10.2-0ubuntu4
Architecture: amd64
Date: Thu Jul 18 21:24:22 2013
DuplicateSignature: package:
ErrorMessage: subprocess installed post-installation script returned error exit status 255
InstallationDate: Installed on 2013-07-09 (9 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130704)
MarkForUpload: True
SourcePackage: samba4
Title: package samba4 4.0.3+dfsg1-
UpgradeStatus: No upgrade log present (probably fresh install)
tags: | removed: need-duplicate-check |
Thanks for the report. The cause of the issue is that you have a invalid /etc/samba/smb.conf file, the option "security = share" is deprecated. The bug, however, is that, instead of telling you that, samba4 decides to just throw up and confront you with an exception. The package maintainers will have to deal with that part.
To get your samba installation repaired, I suggest setting "security = user", then running "testparm /etc/samba/ smb.conf" and look for other reports of invalid/deprecated options. After you finished that, run "sudo apt-get -f install". That should clear your issue.