1) Install samba rpm on os:
[root@myserver ~]# yum install samba
[root@myserver ~]# yum install system-config-samba
2) Start samba service:
[root@myserver ~]# service smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
3) Check samba status:
[root@myserver ~]# service smb status
smbd (pid 3411) is running...
nmbd (pid 3414) is running...
4) Edit smb.conf file:
[root@myserver ~]# vi /etc/samba/smb.conf
5) Configuring samba to share you local directories to another windows clients:
Set this lines at your smb.conf
security = share
gest account = nobody
[my_dir_to_share]
writable = yes
path = /home/mydir
public = yes
guest ok = yes
guest only = yes
guest account = nobody
browseable = yes
6) Problems to open dir on windows? Check the selinux config and disable it:
[root@myserver ~]# vi /etc/sysconfig/selinux
"definesSELINUX = disable"
And execute the setenforce command
[root@myserver ~]# setenforce 0
Nenhum comentário:
Postar um comentário