1828278 Members
3474 Online
109975 Solutions
New Discussion

Samba

 
SOLVED
Go to solution
Kyle D. Harris
Regular Advisor

Samba

How do you stop the Samba Service in Redhat 9? Thanks
3 REPLIES 3
K.C. Chan
Trusted Contributor
Solution

Re: Samba

as root do: service smb stop
Reputation of a thousand years can be determined by the conduct of an hour
Karsten Breivik_1
Frequent Advisor

Re: Samba

...or

/etc/init.d/smb stop

to stop it.

To do it permanently: use chkconfig to automatically edit the symlinks in /etc/rc.d/rc3.d and /etc/rc.d/rc5.d. For instance

chkconfig --level 35 smb on

makes the symlink /etc/rc.d/rc3.d/S91smb and /etc/rc.d/rc5.d/S91smb indicating smb should be runnnig in runlevel 3 and 5. Try

chkconfig --del smb

to remove it completely (it does not give you feedback, so verify that the file /etc/rc.d/rc3.d/S91smb is removed)

poi
Stuart Browne
Honored Contributor

Re: Samba

The feedback it gives is in it's exit state (echo $?). 0 = success, 1 = failure.

This is the case for most Unix based commands..

For instance, you can do freaky stuff like:

if ! grep -q ThisString /tmp/this.file
then
echo "ThisString does not exist in /tmp/this.file"
fi

etc. etc.. Truely almost limitless options.

Makes for *fun* shell scripting *grin*
One long-haired git at your service...