Sunday, 7 January 2018

Samba server without password


--------------------Server[192.168.10.108]------------------------------------

[root@station108 ~]# yum install samba*

[root@station108 ~]# yum whatprovides */smb.conf

[root@station108 ~]# vim /etc/samba/smb.conf

[myfiles]
path=/sambaa
host allow=192.168.10.0/255.255.255.0
browseable=yes
writable=yes
guest ok=yes

[root@station108 ~]# mkdir /sambaa

[root@station108 ~]# chmod 777 /sambaa

--------------------Client[192.168.10.109]--------------------------------------

[root@station109 ~]# yum install cifs-utils samba-client

[root@station109 ~]# systemctl restart smb

[root@station109 ~]# systemctl enable smb

[root@station109 ~]# mkdir /mnt/samba

[root@station109 ~]# mount -o guest  //192.168.10.108/myfiles  /mnt/samba

No comments:

Post a Comment