How to restart samba server?


Normally, smdb starts automatically. I know because I had to figure out how to stop it from starting as I don't need it but it was running with open ports (security risk).

First, check if the process is really not running after boot:

Is it stop/waiting? Then it is indeed disabled.

Then check there is only ONE configuration file for it:

There should only be an smbd.conf.

At my machine, this reads:

Code: Select all

description "SMB/CIFS File Server"
author "Steve Langasek "

start on (local-filesystems and net-device-up)
stop on runlevel [!2345]


pre-start script

[ -r /etc/default/samba ] && . /etc/default/samba

[ "$RUN_MODE" = inetd ] &

install -o root -g root -m 755 -d /var/run/samba
end script

exec smbd -F

The line that reads:

Code: Select all

start on (local-filesystems and net-device-up)


0 0
0 0

Binary packages of Samba are included in almost any Linux or UNIX distribution. There are also some packages available at the Samba home page. Refer to the manual of your operating system for details on installing packages for your specific operating system.

If you need to compile Samba from source, check How to Compile Samba.

Samba's configuration is stored in the smb.conf file, which usually resides in /etc/samba/smb.conf or /usr/local/samba/lib/smb.conf. You can either edit this file yourself or do it using one of the many graphical tools that are available, such as the Web-based interface SWAT, that is included with Samba.

The smb.conf file uses the same syntax as the various old .ini files in Windows 3.1: Each file consists of various sections, which are started by putting the section name between brackets ([]) on a new line. Each contains zero or more key/value pairs separated by an equality sign (=). The file is just a plaintext file, so you can...

0 0
Samba is an open-source software suite that runs on Unix/Linux based platforms but is able to communicate with Windows clients like a native application. So Samba is able to provide this service by employing the Common Internet File System (CIFS).At the heart of this CIFS is the Server Message Block (SMB) protocol. Samba does this by performing these 4 key things -File & print services Authentication and Authorization Name resolution Service announcement (browsing)
Samba can be run on many different platforms including Linux, Unix, OpenVMS and operating systems other than Windows and allows the user to interact with a Windows client or server natively. It can basically be described as the Standard Windows interoperability suite of programs for Linux and Unix.

How to setup Samba Server on Ubuntu?

Let’s take a look at setting up a Samba Server on Ubuntu to share files with Windows clients. Note that we will create two forms of Samba server, one setup won’t require a...

0 0

Samba — программа, которая позволяет сделать из Linux/Unix компьютера файловый сервер для Windows машин. Если вы хотите со своего компьютера под Windows получить доступ к файлам на сервере под ubuntu, то на сервер надо ставить Samba. Также, начиная с 4ой версии, Samba позволяет полностью заменить контроллер домена Active Directory.

В Ubuntu Samba ставится командой

sudo aptitude install samba

После установки сервер надо настроить, конфигурационный файл находится в /etc/samba/smb.conf

Сам конфигурационный файл разбит на блоки. В принципе всё там понятно, да и комментарии написаны подробно и ясно. Поподробнее остановлюсь на некоторых настройках. Например строчка

security = user

Делает так, что для того чтобы залогинится на сервере samba обязательно нужно использовать учётную запись сомой Ubuntu, то есть для того чтобы создать samba-юзера надо сделать следующее:

Сначала создать пользователя в Ubuntu

sudo adduser

а потом создать...

0 0
Installing a SAMBA server

on the Mandrake Linux server will allow file sharing and printers on a network that consists of a mix of Linux and Windows PCs. The SAMBA has a client-server based architecture and consists of tools that can be used for developing services or test configurations. Before

installing a SAMBA server

, certain packages are required to be installed on the Mandrake Linux System. After the installation,

configuring a SAMBA server

can be done easily by making changes in the smb.conf configuration file.

SAMBA Server Commands

can be used to start, stop, restart or perform other functions with the SAMBA Server.

Installing and configuring a Samba server version 3.0.2a
Mandrake Linux version 10.0


Installation of the Mandrake 10.0 (Server)

Have a domain.


The Samba server is the preferred tool to install a LAN (Local Area Network) working with the SMB...

0 0

If you want to be connected with your workstation either from command line or your File Manager (e.g. from another computer in your LAN, Linux, Windows or Mac), install Samba.

According to Official Samba Guide:

Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that is installed on the host server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server.

Please, note that this guide concerns Local Networds and NOT public servers. For advanced configuration, read carefully the Official Samba How-To.

Install Samba server and client

Open a Terminal and type:

sudo apt-get install samba smbclient

Define share folder (eg /data)

Edit configuration file

sudo nano /etc/samba/smb.conf


0 0

Installing Samba

1. Use yum to install the Samba package:

yum -y install samba

Creating Samba Test Directory and Files

For this part of the procedure, you'll use the su - (switch user) command to work as root. Although it’s not best practice to do this regularly, there are times where it's much more practical to work directly as root instead of trying to use sudo to do everything. This is one of those times.

You're going to create a new directory containing three empty files which you'll share using Samba.

2. While logged on as root, create the new directory /smbdemo with the following command:

mkdir /smbdemo

3. Change the permissions on the new directory to 770 with the following command:

chmod 770 /smbdemo

4. Navigate to the new directory with the following command:

cd /smbdemo

5. Add three empty files to the directory with the following command:

touch file1 file2...

0 0

If you already have an Active Directory Domain Controller in place, diligently servicing all your needs and making itself indispensable, hopefully you’ve chosen Linux and Samba 4 to fulfill this.

If you haven’t used this free and open version of Active Directory and the domain controller, perhaps you’d like to? For the latest and greatest Samba 4 version that you compile yourself, you can follow the steps outlined for Debian Wheezy (and possibly Ubuntu).

Remember, too, that Debian backports now has a much more recent version of Samba 4 in its archives, and it seems to be working great right now.

But suppose you have that beast in place, and you want to add, say, a network file server — some storage that can be accessed by all domain users and whose rights and permissions are determined by your Active Directory domain controller.

It’s easy to just create a share on your Samba 4 Active Directory Domain Controller, and serve that out, with all the...

0 0