How to install Samba Server in Ubuntu or Debian?

With the arrival of another computer system at home was necessary to get fast access to a collection of movies and music stored on the server through FTP, however it is not convenient. Hence in order to get fast access, you must configure Samba server in Ubuntu or debian whatever you use, a detailed installation steps are shown below. Put Samba on Ubuntu, the same configs can be done for other versions of Ubuntu, Debian and and other distributions of Linux.

The installation process includes the most basic, i.e. the creation of the balls, the institution customers and creating an alias for a username.

Establish the Samba server :

aptitude install samba

How to install Samba Server in Ubuntu or Debian?
Edit the config file / Etc / samba / smb.conf It will look like this:

; Global server settings
[Global]
; General server settings
The name of company, as will be seen in a networked environment
netbios name = main-server
server string =
; Working Group customers
workgroup = WORKGROUP
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF = 8192 SO_SNDBUF = 8192
passdb backend = tdbsam
security = user
null passwords = true
; File for alias names of users
username map = / etc / samba / smbusers
name resolve order = hosts wins bcast
wins support = yes
Supports printers
printing = CUPS
printcap name = CUPS
; Logs
log file = / var / log / samba / log.% m
syslog = 0
syslog only = no
; Setting bind to the interfaces on which to listen to, unless stated listens on all interfaces
; Interfaces = lo, eth0
; Bind interfaces only = true
;
; [Print $]
; Path = / var / lib / samba / printers
; Browseable = yes
; Guest ok = yes
; Read only = yes
; Write list = root
; Create mask = 0664
; Directory mask = 0775
;
; [Printers]
; Path = / tmp
; Printable = yes
; Guest ok = yes
; Browseable = no
;
; [DVD-ROM Drive]
; Path = / media / cdrom
; Browseable = yes
; Read only = yes
; Guest ok = yes
; Bowl Hard Drive
The name of the balls can be seen from customers
[SDA1-250GB]
; Path rassharivaemomu drive
path = / media/sda1
; Can I view
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755
; Binding to a specific user or group name, the names separated by spaces
; Force user = user1 user2
; Force group = group1 group2
; Another hard drive, by analogy with the fact that higher
[SDE1-120GB]
path = / media/sde1
browseable = yes
read only = no
guest ok = no
create mask = 0644
directory mask = 0755

Now, its time to deal with users, Samba uses a user who is already in the system, take for example the name “user”, Say that he is already in the system, it is necessary to make it into the database SMB and assign a password to access shared resources.

smbpasswd-a user

You will be prompted for a password, the user will be added to the database, now you want to include this user.

smbpasswd-e user

Next is to create an alias for a user name that the user would facilitate their access to Windows machines on which we have for example a user named “Admin”, for this we will need to create and edit the file / Etc / samba / smbusers

touch / etc / samba / smbusers
vim / etc / samba / smbusers

Enter a file a couple of lines :

# Unix_name = SMB_name1 SMB_name2
user = Admin

Setting is finished, now simply Restart the Samba team / Etc / init.d / samba restart and you can use shared resources.



Online 24X7 Chat Support
 
 
Telephone
Toll Free
Online chat
 
Online 24X7 Email Support
 
Emails
 
 
 
Support
Support email
sales
Sales email
 
Billing
Billing email
 
   
Latest Tutorials & Articles (Updated Daily)
http://blog.eukhost.com
  Forums :
http://forums.eukhost.com/