Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Samba on my debian squeeze server but it doesnt start when I reboot it, I have to run it manually for it to start.

How can I make it so that when I start my server, samba starts automatically. I would rather do it without installing software

share|improve this question
up vote 4 down vote accepted

As root enter:

update-rc.d samba defaults

This will install samba for the default runlevels

share|improve this answer
Thank you. That works – user1738522 Nov 3 '12 at 14:39

Does chkconfig command work on Debian?

chkconfig smb on

Above command is tested on RHEL 6.

share|improve this answer

You have to add the init script which is starting the service smb from /etc/init.d to your /etc/rcX.d. Where X is your runlevel There is a program chkconfig which you first may have to install from the debian repository allowing you to do this quite easy (I am just not sure whether it is in the default installation):

apt-get install chkconfig

Now you can add the service smb to start with your system by typing as root:

chkconfig smb 3
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .