Folosind YUM: yum install samba
Folosind RPM:
- Descarcati RPM-ul de la rhn.redhat.com
- rpm -ivh samba*.rpm
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 parolaEnjoy !