Linux: Instalare SAMBA

Instalare server de SAMBA

Folosind YUM: yum install samba
Folosind RPM:
  1. Descarcati RPM-ul de la rhn.redhat.com
  2. rpm -ivh samba*.rpm
Configurare Samba:
cd /etc/samba
mv smb.conf smb.conf.backup
vi smb.conf

Copiati codul de jos:
[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes


save si exit

Adaugati useri:
adduser smbuser #add unix account
passwd smbuser #set unix account password
smbpasswd -a smbuser #creeaza acelasi user si pentru samba
<introduceti parola de mai sus>
/etc/init.d/smb restart


Acum mapati drive-ul in Windows:
Start -> run -> cmd <enter>
Acum introduceti z: \\ip-ul serverului de samba\share /user: user parola

Enjoy !