Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed Samba, and edited smb.conf. Then I typed the following:

sudo /etc/init.d/samba restart

The response I got was

sudo: /etc/init.d/samba: command not found

So now what?

Edit: If I do sudo /etc/init.d/smbd restart, I get the following message:

Rather than invoking init scripts through /etc/init.d, use the service(8) utility, e.g. service smbd restart

Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the restart(8) utility, e.g. restart smbd smbd start/running, process 9265

share|improve this question
    
see my updated answer! –  BloodPhilia Aug 15 '10 at 18:43
    
/etc/init.d/samba restart works very well on 9.10. I just had the issue, and it came with the upgrade to 10.04. It just changed to smbd. –  Quandary Nov 14 '10 at 20:41

2 Answers 2

up vote 2 down vote accepted

Use:

$ sudo su
# /etc/init.d/samba restart

and let me know if that works...

UPDATE

Then try the following:

$ sudo restart smbd
share|improve this answer
    
It says bash: /etc/init.d/samba: No such file or directory –  tony_sid Aug 15 '10 at 18:29

There are no /etc/init.d/samba initscript in the samba package; use sudo /etc/init.d/smbd restart instead.

share|improve this answer
    
Odd... sudo /etc/init.d/samba restart works with me... –  BloodPhilia Aug 15 '10 at 18:15
    
When I tried that I got a message, which I posted in the original question. –  tony_sid Aug 15 '10 at 18:30
    
@awakeFromNib: first, even through it printed the message, the script actually ran. Second, if you don't want to see it, just use sudo restart smbd. –  whitequark Aug 15 '10 at 19:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.