LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting samba (https://www.linuxquestions.org/questions/linux-newbie-8/starting-samba-44021/)

lethargic 02-04-2003 07:25 AM

Starting samba
 
I'm a newbie and I'm trying to get samba to run. I have a few small questions.

- How do you know if its running?
- How do you start/stop/restart it?

Matt

iceman47 02-04-2003 07:40 AM

Quote:

- How do you know if its running?
ps aux
Quote:

- How do you start/stop/restart it?
As far as I remember:
I'm going to assume you have a RedHat (-compatible) system.
Goto /etc/init.d and run (as root) ./smb start (or restart, stop)

mawarsha 02-04-2003 08:46 AM

Go to the terminal window and type in any of the following commands:

/etc/init.d/smb restart
/etc/init.d/smb start
/etc/init.d/smb stop

To have SAMBA start when the machine does type:
chkconfig smb on

Hope that helps.

cgrowdon 02-04-2003 01:54 PM

Using RH 7 or 8, I open a terminal window and
"su -"
<enter password>
and then
"service smb status "

you can also just enter the service command with no parameters to get the parameters it accepts -- one of these is

service --status-all

which is useful to see what services are running--note per other posts that you either need to stop your default IPTABLES firewall which can be done by

service iptables stop

or "poke a hole in the firewall" to get Samba to work with windows boxes.

RH gnome also has a GUI services program and a Samba config program. editing the conf file is instructive though.


All the above is just another way to do what mawarsha correctly posts, without having to remember (or count on ) directory locations.

-- my 2cents....


All times are GMT -5. The time now is 06:07 PM.