Network & Academic Computing Services
Security


Turning off Samba


Turning off samba is harder to describe than turning off sendmail, because there isn't a standard file that samba is envoked from.

Red Hat Linux:
If you chose to install samba when you installed the OS, then the file /etc/rc.d/init.d/smb is where samba is started from. Just insert an "exit 0" on the second line of this file to turn off samba.

Other UNIX variants:
Since samba does not come with the OS, it could be started from anywhere. The person who installed it would be the one to know. If that person does not recall where it was started from, the following command will give you a list of files referring to, smbd, one of the samba daemons. This should help you find where samba gets started.

    find / -xdev -type f -print | xargs grep -l smbd



dcs@uci.edu

Network & Academic Computing Services > Support > Security > Securing a UNIX Machine

Updated: August 6, 2003

University of California, Irvine