Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

installer SAMBA

[root@saida ~]$ su
Mot de passe :
[root@saida saida ]# cd Bureau
[root@saida Bureau]# ls
PACHE DNS HTTP NFS
samba-3.6.9-151.el6.i686.rpm TALNET
DHCP
FTP LDAP SAMBA SSH
[root@saida Bureau]# rpm -ivh samba-3.6.9-151.el6.i686.rpm
attention: samba-3.6.9-151.el6.i686.rpm: Entte V3 RSA/SHA256 Signature,
key ID fd431d51: NOKEY
Prparation...
###########################################
[100%]
1:samba
###########################################
[100%]
[root@saida Bureau]#

Configurer SAMBA

[root@saida Bureau]# cd /etc/samba


[root@saida samba]# vi smb.conf
# ----------------------- Network Related Options
------------------------#
# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
#
# server string is the equivalent of the NT Description field
#
# netbios name can be used to specify a server name not tied to the
hostname
#
# Interfaces lets you configure Samba to use multiple interfaces
# If you have multiple network interfaces then you can list the ones
# you want to listen on (never omit localhost)
#
# Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
# specifiy it as a per share option as well
#
workgroup = ista.com
server string = Samba Server
;

netbios name = MYSERVER

;
;

interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24


hosts allow = 192.168.12.

-- INSERT -[root@saida samba]# useradd samba-1


[root@saida samba]# smbpasswd -a samba-1
New SMB password:
Retype new SMB password:
Added user samba-1.
[root@saida samba]# service smb restart
Fermeture des services SMB :
Dmarrage des services SMB :

[
[

OK
OK

]
]

[root@saida samba]# vi smb.conf


;
path = /var/lib/samba/netlogon
;
guest ok = yes
;
writable = no
;
share modes = no
# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;
[Profiles]
;
path = /var/lib/samba/profiles
;
browseable = no
;
guest ok = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
;
[public]
;
comment = Public Stuff
;
path = /home/samba
;
public = yes
;
writable = yes
;
printable = no
;
-- INSERT -[root@saida samba]# mkdir /home/saida /folder1
[root@saida samba]# chmod 777 /home/saida /folder1
[root@saida samba]# service smb restart
Fermeture des services SMB :
[ OK ]
Dmarrage des services SMB :
[ OK ]

You might also like