In windows side
You need set a directory as shared.Optionally you can add some users who will be allowed to acces to this directory. Keep in mind that de owner (the user who created the dir is also allowed to access).
For example, the user winuser with pass winpass share the folder winshare. The windows PC IP is 192.168.1.133.
In unix side
Install the following packages:[root@host]# yum install samba-client samba-common cifs-utils
Create the associated dir in mount directory:
[root@host]# mkdir /mnt/winshareInUnix
In order to mount the dir you have two options:
Option 1 - Auto mount on startup:
You have to edit the /etc/fstab file and append the following line:
[root@host]# //192.168.1.133/winshare /mnt/winshareInUnix cifs user,uid=500,gid=500,rw,suid,username=winuser,password=winpass 0 0
Option 2 - Manual mount
[root@host]# mount -t cifs //192.168.1.133/winshare /mnt/winshareInUnix-o username=winuser,password=winpass ,sec=ntlm (...) [root@10 mnt]# umount /mnt/winshareInUnix
No hay comentarios:
Publicar un comentario