Operating System - Linux
1826498 Members
1663 Online
109692 Solutions
New Discussion

Permanently set Samba service ON

 
SOLVED
Go to solution
Jorge Cocomess
Super Advisor

Permanently set Samba service ON

Greetings,

Everytime after a reboot of my RHAS server, I would have to start SMB service. I checked under services and SMB service was selected. How do I make this setting a permanent setting so next time I reboot my Linux server, I wouldn't have to worry about my Samba?

Please help.

J
5 REPLIES 5
Ivan Ferreira
Honored Contributor
Solution

Re: Permanently set Samba service ON

Use:

chkconfig smb on

This will configure the service to start at boot time.


And then post the results of:

chkconfig --list |grep smb

Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jees Joy
Frequent Advisor

Re: Permanently set Samba service ON

try these,

chkconfig --level

so basically you can do this comand

chkconfig --level 235 smb on

The following comand can help you in verifying.

chkconfig --list | grep smb

Thanks
Jorge Cocomess
Super Advisor

Re: Permanently set Samba service ON

Hi,
Per your request, here's the result.
chkconfig --list |grep smb
smb 0:off 1:off 2:off 3:on 4:on 5:on 6:off

Please advise.

Thanks so much!!
john kingsley
Honored Contributor

Re: Permanently set Samba service ON

What is your default runlevel?
Look for the line:
"id::initdefault:"
in /etc/inittab.
Ivan Ferreira
Honored Contributor

Re: Permanently set Samba service ON

That should be all by now, post the output of the runlevel command. But should be working right now.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?