/etc/init.d/samba : file does not exist

Bug #581637 reported by Rémi BOULLE
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
sadms (Ubuntu)
Fix Released
Undecided
Gauvain Pocentek
Nominated for Lucid by Gauvain Pocentek
Nominated for Maverick by Gauvain Pocentek

Bug Description

Binary package hint: sadms

After installang sadms (Ubuntu 10.04) with all its dependencies (including samba), when we click on the "Install" button in order to join Windows domain, we have the following message :

update-rc.d : /etc/init.d/samba : file does not exist

By the way, there is no files named /etc/init.d/samba but smbd and nmbd.

It seems that "upstart" has changed way of starting services : smbd+nmbd instead of samba.

Related branches

Changed in sadms (Ubuntu):
assignee: nobody → Gauvain Pocentek (gauvainpocentek)
Revision history for this message
brandonl73 (bcl-hawaii) wrote :

i also have this problem on a fresh server install

Revision history for this message
Cypour (cypour) wrote :

I've been trying to figure out a way out of this but to no avail...

Anyone knows where in the scripts we have to fiddle to fix it?

Changed in sadms (Ubuntu):
status: New → Confirmed
Revision history for this message
Cypour (cypour) wrote :

when I enabled verbose in the output I get this

update-rc.d: /etc/init.d/samba: file does not exist
invoke-rc.d: unknown initscript, /etc/init.d/samba not found

Revision history for this message
Joël Cugnoni (joel-cugnoni) wrote :

Hi,

actually SADMS should be update to take into account the new upstart scripts and so on.. but you can fix this issue by writting a "dummy" /etc/init.d/samba script that mimics the behaviour of the old init.d scripts.

here is a sample "/etc/init.d/samba" that i tested on Ubuntu 10.04 Server with the standard sadms package (from ubuntu repositories).

I know it's a quick and dirty fix, but at least now I can easily join my active directory structure and use AD users to define share access rights!!

----------------------File: /etc/init.d/samba , should be made executable !! --------------------
#!/bin/bash
### BEGIN INIT INFO
# Provides: samba
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start samba at boot time
# Description: Enable service provided by daemon.
### END INIT INF

service smbd $*
service nmbd $*

exit 0
-----------------------------------------------------------------------

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

Hi,

Could you give a try to this .deb and tell me if it fixes the service problem:
http://gauvain.pocentek.net/tmp/sadms/sadms_2.0.14~CVS20100222-0ubuntu2_all.deb

Thanks.

Revision history for this message
Cypour (cypour) wrote : Re: [Bug 581637] Re: /etc/init.d/samba : file does not exist

Will try and let you know...
Thanx!

Από το iPhone μου

Aug 24, 2010, 18:19, ο/η Gauvain Pocentek <email address hidden> έγραψε:

> Hi,
>
> Could you give a try to this .deb and tell me if it fixes the service problem:
> http://gauvain.pocentek.net/tmp/sadms/sadms_2.0.14~CVS20100222-0ubuntu2_all.deb
>
> Thanks.
>
> --
> /etc/init.d/samba : file does not exist
> https://bugs.launchpad.net/bugs/581637
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “sadms” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: sadms
>
> After installang sadms (Ubuntu 10.04) with all its dependencies (including samba), when we click on the "Install" button in order to join Windows domain, we have the following message :
>
> update-rc.d : /etc/init.d/samba : file does not exist
>
> By the way, there is no files named /etc/init.d/samba but smbd and nmbd.
>
> It seems that "upstart" has changed way of starting services : smbd+nmbd instead of samba.
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/sadms/+bug/581637/+subscribe

Revision history for this message
Cypour (cypour) wrote :
Download full text (3.5 KiB)

Hi

I installed sadms on maverick alpha 3
It seems to be 2.0.14

but when I try to install I get this:

-------------------------------------------------------------------------------
S A D M S 2.0.14
Samba as Active Directory Member Server
<email address hidden>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
install
-------------------------------------------------------------------------------
[BEGIN]
[1]
+fix bugs/incompatibilities
disable avahi-daemon automatic startup
disable fam automatic startup
[2]
+customize krb5.conf
install new krb5.conf to /etc
[3]
+get current samba version for smb.conf syntax
samba minor version is 4
+samba config switches
map id from rids using old syntax
use wins server
include sample shares
+customize smb.conf
install new smb.conf to /etc/samba
+customize user.map
install new user.map to /etc/samba
+creating sample data folder in /data shared as data
[4]
+ping kdc trade05
ok
[5]
+sync clocks with kdc
local time was: 2010-08-25 17:17.21
synchronizing with trade05
net time is now:2010-08-25 17:17.22
local time is now:2010-08-25 17:17.22
[6]
+get Kerberos ticket-granting ticket for principal
<email address hidden>
got ticket-granting ticket for principal <email address hidden>
[7]
+get current samba version for join domain syntax
samba minor version is 4
+join domain
join succeeded
+test domain membership
in domain
join is ok
[8]
+winbind automatic startup
+start winbind
winbind started
[9]
+samba automatic startup
+start samba
samba started
[10]
+configure name switch service
WARNING: avahi may interfere with naming
in case of trouble,uncomment suggested 'host:' line in /etc/nsswitch.conf
install modified nsswitch.conf to /etc
configure dynamic linker run time bindings
libnss_winbind.so.2 -> libnss_winbind.so.2
[11]
+finalize
restart name caching daemon
restart winbind daemon
restart samba daemons
[13>] with error
log extract
vvvvv
Aug 25 17:17:20 admin sadms: sadms start
Aug 25 17:17:39 admin sadms: sadms finish error 13 samba daemons
^^^^^
[END]

[2010/08/25 17:17:24.138790, 0]
utils/net_ads.c:1147(net_update_dns_internal)
  net_update_dns_internal: Failed to connect to our DC!
DNS update failed!
update-rc.d: /etc/init.d/samba: file does not exist
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
[ERROR]
returned error code 13
command line was <./_install.sh 'TRADELINK.GR' 'tradelink.gr' 'trade05'
'TRADELINK' 'admin' '' 'administrator' '*****' 'Domain Users' '
10.200.1.15/255.255.255.0' 'trade05'>

On Tue, Aug 24, 2010 at 6:19 PM, Gauvain Pocentek <email address hidden>wrote:

> Hi,
>
> Could you give a try to this .deb and tell me if it fixes the service
> problem:
>
> http://gauvain.pocentek.net/tmp/sadms/sadms_2.0.14~CVS20100222-0ubuntu2_all.deb
>
> Thanks.
>
> --
> /etc/init.d/samba : file does not exist
> https://bugs.launchpad.net/bugs/581637
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “sadms” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: sadms
>
> After installang sadms (Ubuntu 10.04) with all its dependencies (including
> samba), when we click on the "Ins...

Read more...

Revision history for this message
Gauvain Pocentek (gpocentek) wrote :

Cypour, I've been able to join a domain with the updated package so I'm quite surprised that you still have the problem.
Did you use the package linked in my previous comment or the package in the repositories (which has not been updated yet)?

Thanks.

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

This bug was fixed in the package sadms - 2.0.14~CVS20100222-0ubuntu2

---------------
sadms (2.0.14~CVS20100222-0ubuntu2) maverick; urgency=low

  * debian/patches/07_use_upstart_script_names.patch:
    - use the upstart scripts instead of sysV ones (samba -> smbd, nmbd)
    - LP: #581637
  * debian/patches/08_french.patch:
    - include french translations from Rémy Boulle
  * debian/patches/series:
    - refreshed
  * debian/control:
    - depend on cifs-utils | smbfs
  * debian/rules:
    - make sure to remove .mo files
 -- Gauvain Pocentek <email address hidden> Tue, 24 Aug 2010 16:13:11 +0200

Changed in sadms (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
brunet (brunet-benjamin) wrote :

Hey everybody, i'm french and my english is very bad but i try ..

I have the same probleme of Cypour and i can't download the updated package of "gauvain pocentrek" becuse i think the link is dead.

"Lauchpad janitor" speak that the package 2.0.14~CVS20100222-0ubuntu2 but where can we download it because on the official web page, the download stop at the sadms version 2.0.13

For saymore on y project, i have a ubuntu client and a 2003 server and i want use my ubuntu computer like a xp client on the network and for the moment, i have the same problem that Cypour :

_________________________________________________________________________________________________________

[10]
+configure name switch service
WARNING: avahi may interfere with naming
in case of trouble,uncomment suggested 'host:' line in /etc/nsswitch.conf
install modified nsswitch.conf to /etc
configure dynamic linker run time bindings
libnss_winbind.so.2 -> libnss_winbind.so.2

[11]
+finalize
restart name caching daemon
restart winbind daemon
restart samba daemons

[13>] with error
log extract
vvvvv
Nov 16 14:50:22 client sadms: sadms start
Nov 16 14:50:38 client sadms: sadms finish error 13 samba daemons
^^^^^
[END]

[2010/11/16 14:50:23.710469, 0] utils/net_ads.c:1147(net_update_dns_internal)
  net_update_dns_internal: Failed to connect to our DC!
DNS update failed!
update-rc.d: /etc/init.d/samba: file does not exist
invoke-rc.d: unknown initscript, /etc/init.d/samba not found.
[ERROR]
returned error code 13
command line was <./_install.sh 'DOMAIN.LOCAL' 'domain.local' 'kdc' 'domain' 'client' '' 'administrateur' '************' 'Utilisa. du domaine' 'x.x.x.x/255.255.252.0' ''>

_________________________________________________________________________________________________________

Thank you for your help and sorry for my bad english !!!!

Benjamin

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.