Samba Config

Samba-4-0-7-Has-Been-Officially-Released

Samba is a free software re-implementation of the SMB/CIFS networking protocol, originally developed by Andrew Tridgell. As of version 3, Samba provides file and print services for various Microsoft Windows clients and can integrate with aWindows Server domain, either as a Primary Domain Controller (PDC) or as a domain member. It can also be part of anActive Directory domain.

Samba runs on most Unix and Unix-like systems, such as LinuxSolarisAIX and the BSD variants, including Apple’s Mac OS X Server (which was added to the Mac OS X client in version 10.2). Samba is standard on nearly all distributions of Linux and is commonly included as a basic system service on other Unix-based operating systems as well. Samba is released under the terms of the GNU General Public License. The name Samba comes from SMB (Server Message Block), the name of the standard protocol used by the Microsoft Windows network file system.

Samba
Samba Logo.png
Initial release 1992; 21 years ago [1]
Stable release 4.0.7 / July 2, 2013; 25 days ago[2]
Development status active
Written in C / C++ / Python
Operating system Multiplatform
Type Network file system
License GNU General Public Licenseversion 3
Website www.samba.org

Installation of samba in Ubuntu

 

# sudo apt-get install samba

#cd  etc/samba/

# Vim smb.conf  (copy the smb.conf file there)

Step # 1: Add a user ami to UNIX/Linux system

adduser command adds user to the system according to command line options and configuration information in /etc/adduser.conf. They are friendlier front ends to the low level tools like useradd.

Type any one of the following command:
# useradd ami
# passwd ami

OR
adduser ami

Step # 2: Add a user to samba

Now user joe has account on Linux/UNIX box. Use smbpasswd command to specifies that the username following should be added to the local smbpasswd file:
# smbpasswd -a ami

Step # 3: Add a user to a Samab share

By default user gets access to /home/ami from windows system. Let us say you want to give ami access to /data/accounts (make sure directory /data/accounts exists) directory. Open /etc/samba/smb.conf file and add/modify share called [accounts]:

[accounts]
comment = Accounts data directory
path = /data/accounts
valid users = ami
public = no
writable = yes
readable = no

Start

sudo service smbd start

Stop

sudo service smbd stop

Restart

sudo service smbd restart

 

In windows:

Run>\\ubuntu sys ip

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s