Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Very simple question here - how do I start Samba on boot? I tried adding a script file called 'samba' to the /etc/rc.d/init.d/ directory, but i'm not sure (a) what that's really used for, and (b) if there are specific things that my script has to have in order for it to work there. it contained only a single line:
/usr/sbin/samba start
but samba didn't start on boot. i know this has got to be pretty simple. suggestions? i'd really appreciate your help, thanks!
I do not curently have smb installed. However I have done this in the past successfully. It would be much simpler to go into Linuxconf and select the control tab. In there you will see Control Service Activity. Look for SMB in the list of services. I think that when you install smb it automatically adds it to the list, but I may be mistaken. Anyway assuming that it is in the list of services, all you need to do is click on it and change the startup from manual to automatic. You can make other changes like telling it at what point you want it to load, before the network or after etc..., but most of that is done for you.
Now if it is not in the list of services, then all you need to do is add it in the Control files & Systems, Create Linux addons. It is really simple, just fill in the appropriate command lines and anything else you need. (Keep it simple) Then go back into the Control Service Activity and change it to automatic.
if you're running redhat, try running "ntsysv". this will let you configure the daemons and services you want to be activated at boot. samba should be available in the list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.