Click to See Complete Forum and Search --> : SAMBA services disabling issues


dba_pinay
06-28-2007, 04:26 AM
Hello,

I already disabled the samba services by executing the command below:
"chkconfig --level 0123456 smb off"
and I verified that its disable but, when I checked the messages logs, I can still see the following:

Jun 28 10:46:21 myserver smbd[30964]: [2007/06/28 10:46:21, 0] lib/access.c:check_access(328)
Jun 28 10:46:21 myserver smbd[30964]: Denied connection from (10.105.6.37)
Jun 28 10:46:22 myserver smbd[30968]: [2007/06/28 10:46:22, 0] lib/access.c:check_access(328)
Jun 28 10:46:22 myserver smbd[30968]: Denied connection from (10.105.6.37)

Information:
We are using RHEL4 U2 2.6.9-22.ELhugemem
and the server was setup as database server (a member of cluster group)

The reason why I did the samba service to be disabled because it is a requirement for clustering (due to private network).

Right now, I'm wondering why I still get the error messages which I posted above (for what I understand, this message came from samba services? correct me if I'm wrong).

Thanks...

Glennzo
06-28-2007, 02:22 PM
Is this command "chkconfig --level 0123456 smb off" permanent or will samba start again next boot, assuming that the server is rebooted? Take a look at System > Administration > Services and see if smb is checked.

dba_pinay
06-28-2007, 10:25 PM
Hello Glennzo,

The server was not yet rebooted when I have this messages, I will monitor the logs, since we restarted the server today. I can't see the menu you mentioned here (maybe I have different menu for that...I will check it anyway).

After rebooting the server, I checked again if the samba services in any run level was enable and verified its not. Then, I checked the messages log if I will encounter this kind of logging, so far there's no occurrence after server rebooted. I also want to add, that, when restarted the server I see the following log:

Jun 29 08:11:31 myserver smb: smbd shutdown succeeded
Jun 29 08:11:31 myserver nmbd[2631]: [2007/06/29 08:11:31, 0] nmbd/nmbd.c:terminate(56)
Jun 29 08:11:31 myserver nmbd[2631]: Got SIGTERM: going down...
Jun 29 08:11:31 myserver smb: nmbd shutdown succeeded

Then, I expect that there is startup succeeded on the logs (if still enable), but I cannot find any, maybe the disabling of the services was only became effective, after I restart the server? am I right?

Any feedback is appreciated..thanks

remus308
06-28-2007, 11:53 PM
chkconfig does not stop the samba service on a running system. it updates the startup script to not run smb next time the server reboots. to stop the smb service on a running system in RedHat, execute the following commands:
# chkconfig smb off
# service smb stop

dba_pinay
06-29-2007, 08:56 AM
To remus,

Thanks...