Sei sulla pagina 1di 15

c 

Contents
 


   
1.1 History
1.2 What is c  
1.3 Principle of functioning
1.4 Reminders TCP / IP, NetIOc


   
2.1 When is it necessary
2.2 Installation of c   smbd and nmbd


  
3.1 On the server
3.2 On the windows workstation


     


 

  

 
Introduction

camba is a free software and an implementation of the c/CIFc networking protocol


on GNU/Linux.

On our L N ( Local rea Network ), we certainly need to share our Linux ressources
with others workstations windows connected to it even network. co, This protocol
allows to give directories of the files system and printers for Network customers like
Windows ®, Linux ®, Oc / 2 ®, etc.

   
 ! 
" 

ndrew Tridgell developed the first version of camba Unix January 1992, the ustralian
National University, using a packet sniffer to do network analysis of the protocol used by
DEC Pathworks server software. t the time of the first releases, it didn't have a proper
name, and Tridgell just called it "a Unix file server for Dos Pathworks". t the time of
version 1.0, he realized that he "had in fact implemented the netbios protocol" and that
"this software could be used with other PC clients͞.
With a focus on interoperability with icrosoft's L N anager, Tridgell released "netbios
for unix", nbserver, version 1.5 in December 1993. This release was the first to include
client-software as well as a server. lso, at this time GPL2 was chosen as license.
idway through the 1.5-series, the name was changed to smbserver. However, Tridgell got
a trademark notice from the company "cyntax", who sold a product named TotalNet
dvanced cerver and owned the trademark for "cserver". The name "camba" was
derived by running the Unix command grep through the system dictionary looking for
words that contained the letters c, , and , in that order.
! #   $%$&

c  is a set of programs which allow to connect to a server Working under an operating


system GNU / LINUX, with workstations working under one diverse systems Windows 3.11,
Windows 9x, Windows NT, Windows 2000, Oc / 2, ac.... The server GNU / LINUX is in
measure of behaving as a files server Capable of offering the usual services on a network
- sharing of files and directories,
- sharing of printers,
- Respect of accounts user ,
- anagement of access permissions ,
- Execution of personalized scripts of connection.

!       


The communication protocol which allows this communication Linux - DOc/Win leans on
NetIOc, Network  cIC Input / output cystem and is called c, cerver essage lock. Its
functioning is in accordance with the client-server, that means the client makes requests
and the server sends answers.
The roles of client and server not being exclusive, a machine can at once be client and
server. The clients are connected to the servers by using NetIOc above TCP / IP. When
they established a connection, the clients can then send c commands to the server
which allow them to reach In the shared resources

Ex c communication between a client c Windows and a server GNU / LINUX.
! ' (    ) *  + , -
Technically, c (finalized icrosoft, Intel and I) is one L N manager's implementation on
TCP / IP allowing to share differents resources such as disk space, the printers, the serial ports,
etc.... NetIOc, Network  cIC Input / output cystem, is a network PI. The Windows programs
use this PI to communicate with another machine. NetIOc corresponds of OcI Transport and
session layers.

c, a complex protocol


- The server offers his resources (files system, printers) to the Windows clients Which will
connect under an account created by root, after an authentification by password.
- The work is shared by two deamons smbd for the service server and nmbd for the service of
resolution of names Netbios.
- Of the client side, the protocol c works above several protocols.
- it requires NetIOc above TCP / IP (on the other hand NetEUI is not useful)

   
! #    &

We install c  server(a machine on which we install a files sharing service and printings)
so that each of the computers on the network can communicate between them using
differents operating systems of GNU / LINUX. The c  server to be executed thus owes
in more serving files chared and connections users, become integrated into a context of
systems Heterogeneous without perturbing the whole network functioning.

!    $%$.    


# aptitude install samba
It is just necessary to install the package samba, which is going to install by dependence the
package ba-common which is of use at once for the server and the client. fter
installation, camba supplies services because of two daemons. The sharing files and printers
made by the deamon /usr/sbin/smbd and a naming service and authentification with the
deamon /usr/sbin/nmbd. The installation of the package containing camba is make on the
machine server.

  
!
-  / 
ll parameters are the made in a single file  /etc/smb.conf

      ! 


ake a saving of this file by caution (cp smb.conf smb.old) then edit this.
This file is organized in sections .
Two ( 2 ) main sections are difined  global] and homes ].
The root administrator can edit, modify and add sections, for define new shared
ressources.

0    /   
When the file is personalized well, verify if it is very valid with the testparm program
# testparm
Don͛t forget to stop and restart camba configuration file
# /etc/init.d/samba reload
    
# Indicate the IP address of the adapter of
12 the server and the netmask of network
# Give the same name of workgroup that of interfaces =
stations Windows 95/98 10.177.200.110/255.255.255.0
workgroup = FCTICE77
# Indicate the place of the file printcap,
# account using for access to
guest account = nobody ; recapitulating all the printers installed on
the server
# access multi user Linuxprintcap = /etc/printcap
share modes = yes ;
# share all printers defined in the
# Restrict by security sub-networks authorized to printcap file
connect to the server

# Here we limit ourselves to the private network load printers = yes


addresses 10.194.2.0 and the loopback interface
hosts allow = 10.177.200.127 # Use a file of track for every machine
which connects
# We can exclude machines to the network access log file = /var/log/samba/log.%m
hosts allow = 10.177.200. EXCEPT 10.177.200.125
# choose the secutity mode  user ou
# Others possibilities exist  see manual share
man smb security = user
    

1  2
]  



]    
 
 
 

comment =     


browsable = 
writable = 
create mode = 3433

!
-   

# aptitude install mbclient


ctivate Netios and TCP/IP
llocate IP adress to each workstation
Give name to workstation WorkGroup
Restart machine

     
ceveral commands exist to allow the client samba to work. co,
- to have the list of the machine in the network neighborhood 
5   '6 7,8  88, -8 8   '
 8# 
- for see the sharing of the computer ordi1
5  
6 
  8 
- download file
5    ! 
- print file
5    ! 
- add file in the shared repertory
5   ! 
- change password of the network neighborhood
5   ' 7,8  88, -8 8   '
 8# 

 
There are only two types of security modes for camba, namely share-Level
(level of the sharing) and user-level (level of the user); collectively, we ade
reference to these two modes under the term levels of security. The security
in Level of the sharing can be implemented by a single way while the security
at the level of the user can it be implemented of four differents manners. We
call security mode, the various manners to implement one of security level.
Conclusion
In conclusion, camba has the advantage to be able to be multi-platform.
Client Unix nd Windows can be divided files via this rather simple program
Of use.
ibliography
Formation Debian GNU/Linux.pdf
http//wiki.debian.org
http//doc.fedora-fr.org/wiki
http//cern91.tuxfamily.org/linux/indexnet.phppage=net/
http//lalux.org/modules.phpname=News&file=print&sid=4
http//www.linux-pour-lesnuls.com/
http//www.mirabellug.org/docs/samba/c105.html
http//lalux.org/modules.phpname=News&file=print&sid=4/
http//pagesperso-
range.fr/dawidlinux/libres_fichiers/tutoriels.html
http//www.ac-creteil.fr/reseaux/systemes/linux/samba-
linux.html

Potrebbero piacerti anche