[SRU] package samba 2:3.5.8~dfsg-1ubuntu2.2 failed to install/upgrade: broken permissions/configuration cause daemons not to start correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
Fix Released
|
Medium
|
James Page | ||
Lucid |
Won't Fix
|
High
|
James Page | ||
Natty |
Invalid
|
Undecided
|
Unassigned | ||
Oneiric |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
High
|
James Page | ||
Quantal |
Fix Released
|
Medium
|
James Page |
Bug Description
[Impact]
Currently we receive large numbers of bug reports for samba during upgrades due to broken permissions or misconfiguration of samba.
This is due to how testparm is used in the pre-start script for nmbd - the intent is to determine whether the daemon should be started by querying a specific samba configuration element - however testparm returns a non-zero error code for WARNINGS resulting in a pre-start failure in the init script for trivial configuration issues and broken permissions.
[Test Case]
sudo apt-get install samba
sudo chmod 0777 /var/lib/samba
sudo testparm -s
- (displays a WARNING about permissions)
- exit code is non-zero
sudo stop nmbd
sudo start nmbd
- start: Job failed to start
grep nmbd /var/log/syslog
- [...] nmbd pre-start process (XXXX) terminated with status 1
[Regression Potential]
Minimal - the fix is limited to a single line in the pre-start block of the nmbd upstart configuration. Any regressions would manifest themselves in this area. Likely problems may include nmbd itself (rather than the upstart pre-start script) not starting correctly due to broken configuration - although this is not technically a regression of course.
[Original Bug Report]
Binary package hint: samba
Happens any time I install or uninstall a program. But does not seem to effect the operation of the programs.
ProblemType: Package
DistroRelease: Ubuntu 11.04
Package: samba 2:3.5.8~
ProcVersionSign
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelMo
AptOrdering:
gdm: Install
samba: Configure
gadmin-samba: Configure
system-
gdm: Configure
Architecture: i386
BothFailedConnect: Yes
Date: Thu Jun 2 11:53:20 2011
ErrorMessage: subprocess installed post-installation script returned error exit status 1
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
NmbdLog:
SambaServerRegr
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
Title: package samba 2:3.5.8~
UpgradeStatus: Upgraded to natty on 2011-05-01 (31 days ago)
Changed in samba (Ubuntu): | |
status: | Incomplete → Confirmed |
importance: | Undecided → Medium |
summary: |
- package samba 2:3.5.8~dfsg-1ubuntu2.2 failed to install/upgrade: - subprocess installed post-installation script returned error exit status - 1 + package samba 2:3.5.8~dfsg-1ubuntu2.2 failed to install/upgrade: broken + permissions cause daemons not to start correctly |
Changed in samba (Ubuntu Quantal): | |
assignee: | nobody → James Page (james-page) |
Changed in samba (Ubuntu Precise): | |
milestone: | none → ubuntu-12.04.1 |
assignee: | nobody → James Page (james-page) |
importance: | Undecided → High |
summary: |
package samba 2:3.5.8~dfsg-1ubuntu2.2 failed to install/upgrade: broken - permissions cause daemons not to start correctly + permissions/configuration cause daemons not to start correctly |
Changed in samba (Ubuntu Precise): | |
status: | New → In Progress |
description: | updated |
description: | updated |
description: | updated |
Changed in samba (Ubuntu Lucid): | |
status: | Fix Committed → Triaged |
Changed in samba (Ubuntu Lucid): | |
status: | Triaged → Won't Fix |
This issue is more of an annoyance since it does not seem to effect the programs that I'm installing.