/etc/init.d/samba

Asked by schicks R

i installed yesterday a lot of update including samba. I do not find the ability to make a restart nor stop nor start of samba inthe /etc/init.d. there is no more samba files into this directory. How can i get these command. Is it a miss or not. Could you help me.
I confirm this is for UBUNTU 10.04.
Thanks a lot
Roland

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Ian Ace
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Best Ian Ace (iaculallad) said :
#1

On your terminal:

sudo /etc/init.d/samba restart

If that command shows an error, maybe, you're trying to execute a script that is not available on the directory /etc/init.d, try installing it with:

sudo apt-get update && sudo apt-get install samba

HTH.

Revision history for this message
KaTaToHuK (katatohuk) said :
#2

Is samba installed ?
Try to get it via apt, as Ian said.
If you have it already, make update-rc.d samba defaults

Revision history for this message
schicks R (roland-schicks) said :
#3

Thanks for help. unfortunately this do not answer my question.
Yes Samba is already installed
please give me the right command to make update-rc.d samba defaults i'm not very close to the linux command sorry.

Roland

Revision history for this message
KaTaToHuK (katatohuk) said :
#4

You should type as I mentioned before.
sudo update-rc.d samba defaults

Revision history for this message
schicks R (roland-schicks) said :
#5

ok i made it now . The answer is
make; *** Pas de règle pour fabriquer la cible << update-rc.d >>. Arrêt.
it is "no rules to create target" what cna i do?

Roland

Revision history for this message
KaTaToHuK (katatohuk) said :
#6

This message means only one - you didnt install samba server though.
Maybe you just installed samba client ?
Verify it please.

Revision history for this message
KaTaToHuK (katatohuk) said :
#7

Better type this and give me the output
dpkg -l '*samba*'

Revision history for this message
schicks R (roland-schicks) said :
#8

ok thanks. I made confidence to initial installation procedure which in the past install samba server too.
I will then install the server and hope to have no more need to this help ......
Thanks a lot and best regards.

Roland

Revision history for this message
KaTaToHuK (katatohuk) said :
#9

Ur welcome :)

Revision history for this message
schicks R (roland-schicks) said :
#10

ok the answer to the command is

roland@roland:~$ sudo dpkg -l '*samba*'
[sudo] password for roland:
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Description
+++-==============-==============-============================================
ii samba 2:3.4.7~dfsg-1 SMB/CIFS file, print, and login server for U
un samba-client <néant> (aucune description n'est disponible)
ii samba-common 2:3.4.7~dfsg-1 common files used by both the Samba server a
ii samba-common-b 2:3.4.7~dfsg-1 common files used by both the Samba server a
un samba4 <néant> (aucune description n'est disponible)
un samba4-clients <néant> (aucune description n'est disponible)
un samba4-common <néant> (aucune description n'est disponible)
roland@roland:~$

Revision history for this message
KaTaToHuK (katatohuk) said :
#11

According to the dpkg command you have samba server installed already.
Try to make reinstall by typing this:
sudo apt-get install samba --reinstall

Revision history for this message
schicks R (roland-schicks) said :
#12

i made this and the result is. Is this correct?

roland@roland:~$ sudo apt-get install samba --reinstall
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Les paquets suivants ont été installés automatiquement et ne sont plus nécessaires :
  libopenal1 ttf-mscorefonts-installer cabextract ttf-symbol-replacement
  libmpg123-0 winbind libaudio2
Veuillez utiliser « apt-get autoremove » pour les supprimer.
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 0o/6274ko dans les archives.
Après cette opération, 0o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ? o
Préconfiguration des paquets...
(Lecture de la base de données... 161473 fichiers et répertoires déjà installés.)
Préparation du remplacement de samba 2:3.4.7~dfsg-1ubuntu3 (en utilisant .../samba_2%3a3.4.7~dfsg-1ubuntu3_i386.deb) ...
nmbd stop/waiting
smbd stop/waiting
Dépaquetage de la mise à jour de samba ...
Traitement des actions différées (« triggers ») pour « man-db »...
Traitement des actions différées (« triggers ») pour « ufw »...
Traitement des actions différées (« triggers ») pour « ureadahead »...
Paramétrage de samba (2:3.4.7~dfsg-1ubuntu3) ...
smbd start/running, process 4442
nmbd start/running, process 4449

roland@roland:~$

Revision history for this message
schicks R (roland-schicks) said :
#13

i don't find the file "samba" into directory /etc/init.d
it is strange
Roland

Revision history for this message
KaTaToHuK (katatohuk) said :
#14

Hhmmmm...strange
And command sudo /etc/init.d/samba stop doesnt work ?

Revision history for this message
Ian Ace (iaculallad) said :
#15

Are you currently using the beta version of Lucid? I heard that they changed it to an upstart service now.

You can start samba with:

sudo service smbd start

and Stop samba with:

sudo service smbd stop

HTH.

Revision history for this message
schicks R (roland-schicks) said :
#16

helas no here follows the result of this command. Sorry

roland@roland:~$ sudo /etc/init.d/samba stop
[sudo] password for roland:
sudo: /etc/init.d/samba: command not found
roland@roland:~$

Revision history for this message
Ian Ace (iaculallad) said :
#17

Are you currently using the beta version of Lucid? I heard that they changed it to an upstart service now.

You can start samba with:

sudo service smbd start

and Stop samba with:

sudo service smbd stop

HTH.

Revision history for this message
schicks R (roland-schicks) said :
#18

helas no here follows the result of this command. Sorry

roland@roland:~$ sudo /etc/init.d/samba stop
[sudo] password for roland:
sudo: /etc/init.d/samba: command not found
roland@roland:~$

Revision history for this message
KaTaToHuK (katatohuk) said :
#19

So init.d will no longer be used in Lucid ?

Revision history for this message
Ian Ace (iaculallad) said :
#20

Yes, I do think so. Maybe they're shifting on using upstart instead of the normal /sbin/init daemon.

Revision history for this message
schicks R (roland-schicks) said :
#21

thanks to both of you. I didn't know this new rule with init.d under Lucid.
Anyway the solution you gave works fine

roland@roland:~$ sudo service smbd stop
smbd stop/waiting
roland@roland:~$ sudo service smbd start
smbd start/running, process 6194
roland@roland:~$ sudo service smbd restart
smbd start/running, process 6211
roland@roland:~$

I think this news will be in a README file for samba in the next final LUCID within +- 8 days.
Thanks a lot for help. Now i can say RESOLVED.
bye and congratulation for your job.
best regards to you both

Roland

Revision history for this message
schicks R (roland-schicks) said :
#22

Thanks Ian Ace A. Culallad, that solved my question.