Click to See Complete Forum and Search --> : Samba auto start


wmahaffey
08-20-2002, 04:39 PM
I seem to have a very basic samba configuration and I can copy files to and from my Linux machine. I still have one problem, I cannot seem to get Samba to start when the machine is booted. I have to manually start it or start it from SWAT. I have look at many sources but cannot seem to understand enough from them to get Samba to start at boot.

I am using SuSE 8.0

Thanks in advance for your help.

William

froggy3132000
08-20-2002, 09:54 PM
This was somewhat discussed in a previous thread

http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=60665

not sure with Suse, but with Redhat you can use the setup command and go to system services and choose smb to start automatically.

wmahaffey
08-21-2002, 10:51 AM
Thanks for the link. I still have not found a way that I understand to automatically start Samba.

I have no problem using the command line to do this. I just do not know what files to edit and what to place in them.

Thanks again,

Willaim

gwartheg
08-21-2002, 11:57 AM
if you boot into run level 3, try making this link (as root):

ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc3.d/S91smb

and if you boot into run level 5, this one:

ln -s /etc/rc.d/init.d/smb /etc/rc.d/rc5.d/S91smb

you may have to adjust the actual paths for your situation...

wmahaffey
08-21-2002, 03:53 PM
I was able to locate a script named smb in /etc/init.d. There is also a directory /etc/init.d/rc5.d.

I tried to make a link with:
ln -s /etc/init.d/smb /etc/rc5.d/S91smb

I got the error:
ln: creating symbolic link `/etc/rc5.d/S91smb' to `/etc/init.d/smb': No such file or directory

I also found a directory /etc/rc.d and there is a script in that directory named smb. There is also a /etc/rc.d/rc5.d.

I know I am doing something wrong but I have tried several different combinitions and I continue to get errors.

Thanks again for your help.

William

pcghost
08-21-2002, 05:30 PM
Try

chkconfig --level 345 smb start

works in RH, maybe in your distro too?

wmahaffey
08-22-2002, 11:57 AM
I had to modify the chkconfig script a little but that worked. This is the chkconfig that I ran:

chkconfig -a smb start

Thanks again for your help

William

clinux
01-23-2003, 10:46 PM
I know this is a old post but if you figured out how to start samba automatically please let me know!

adikgede
01-23-2003, 11:18 PM
Use sysconfig in yast

If you edit your init scripts manually there is a chance that the changes will be wriiten over nextime you run yast, or a chance that changes you make in yast won't be commited because the configuration has been modified. The configuration for kdm is a common example.

the value you have to modify is START_SMB=no

Up to SuSE 7 /etc/rc.config
SuSE 8 inside /etc/sysconfig

again use yast to do it

clinux
01-23-2003, 11:54 PM
What is kdm and what file in /etc/sysconfig do I have to modify? I see /etc/sysconfig/samba is this the file to edit, the only thing I see in there is this: SAMBA_SAM="classic" do I just add START_SMB=yes to this file? I'm not clear on this, when I open the /etc/sysconfig folder there are many files within it and 3 more folders as well.