LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-16-2013, 10:39 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 627

Rep: Reputation: 31
where is the init samba script


Hi,
I want to remove the samba server, I can't find the running script
here is output of commands:

# ls /etc/rc2.d

K20speech-dispatcher S19cpufrequtils S30mdm S75sudo
K23ntp S20hddtemp S50pulseaudio S99acpi-support
K99ondemand S20kerneloops S50rsync S99grub-common
README S20vsftpd S70dns-clean S99rc.local
S05loadcpufreq S30lightdm S70pppd-dns

ps aux | grep mb
root 970 0.0 0.1 21424 3848 ? Ss May14 0:00 smbd -F
root 993 0.0 0.0 21528 1356 ? S May14 0:00 smbd -F
root 2067 0.0 0.1 13360 2152 ? Ss May14 0:33 nmbd -D

the smbd and nmbd are running, where are the starting script, by default the init level is 2 ( so there should be in rc2.d)

thanks for help
regards
Thanks a lot
 
Old 05-16-2013, 11:01 AM   #2
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
/etc/init.d/samba ?

But if you don't want it, then just remove the samba package
Code:
# apt-get remove --purge samba
 
Old 05-16-2013, 06:19 PM   #3
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

not sure what version of Debian you're running but on my 7.0 box it is /etc/rc2.d/S07samba.
You should be able to use any of the standard tools to disable it. Eg
Code:
rcconf --off samba
If, you really don't see it in at /etc/rc2.d/S07samba, check what runlevel you are really on (it may not be 2), and also look at the scripts in /etc/init.d. Eg.

Code:
grep -E 'smbd|nmbd' /etc/init.d/*
Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Start Samba at boot up problem on FC11. init script? need_rto Linux - Software 2 02-18-2010 09:39 PM
Init script in /etc/init.d does not start at boot tdnnash25 Linux - Server 4 12-18-2009 04:40 PM
Init.d Script pliqui Debian 11 06-16-2009 08:58 AM
starting script, init by copy/create file in (samba) folder? muab Linux - General 7 06-22-2005 06:02 PM
problem with /etc/init.d/samba (maybe) mehlkelm Debian 1 02-03-2005 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration