22.2.4. Starting and Stopping the Server


On the server that is sharing directories via Samba, the smb service must be running.
View the status of the Samba daemon with the following command:
/sbin/service smb status
Copy to Clipboard
Start the daemon with the following command:
/sbin/service smb start
Copy to Clipboard
Stop the daemon with the following command:
/sbin/service smb stop
Copy to Clipboard
To start the smb service at boot time, use the command:
/sbin/chkconfig --level 345 smb on
Copy to Clipboard
You can also use chkconfig, ntsysv, or the Services Configuration Tool to configure which services start at boot time. Refer to Chapter 19, Controlling Access to Services for details.

Note

To view active connections to the system, execute the command smbstatus.
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat