Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I installed samba sudo apt-get install samba.

then I made configuration but when i write :

sudo /etc/init.d/samba restart

message appears " command not found "

and when I write ls /etc/init.d I didn't find samba .

solutions tested :

sudo /etc/init.d/smbd restart

sudo /etc/init.d/nmbd restart

sudo service samba restart

and re-install samba

can you hint me please .

note : my os is ubuntu10.4 LTS

share|improve this question
add comment

1 Answer

sudo /etc/init.d/smbd restart

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 stop(8) and then start(8) utilities, e.g. stop smbd ; start smbd. The restart(8) utility is also available.

smbd stop/waiting

smbd start/running, process 7831

So the commands to start/stop samba:

sudo stop smbd

sudo start smbd
share|improve this answer
add comment

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.