Montar windows share de dominio AD en linux
Resolution
(pendiente de traducción)
access.redhat.com/solutions/448263
- Windows share can be mounted on RHEL system using
option ofcifs
command as :mount
<code>[root@host ~]# mount -t cifs -o username=<share user>,password=<share password> //WIN_PC_IP/<share name> /mnt </code>
- In case your user is in windows domain then you can define the domain as follows:
<code>[root@host ~]# mount -t cifs -o username=<share user>,password=<share password>,domain=example.com //WIN_PC_IP/<share name> /mnt </code>
- By default windows share mounted with the full permission (777) in Linux. To change the default permission use the
anddir_mode
options to set directory and file permission.file_mode
<code>[root@host ~]# mount -t cifs -o username=<share user>,password=<share password>,dir_mode=0755,file_mode=0755 //WIN_PC_IP/<share name> /mnt </code>
- To make the mount persistant across reboots, make the below entry to the
/etc/fstab
<code> //WIN_PC_IP/<share name> /<mntpoint> cifs _netdev,username=<share user>,password=<share password>,dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0 </code>
- If you receive the following error when try to mount the share folder from windows machines
<code>mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) </code>
Please verify the permission on the folder on you windows machine and try again mount the share folder.
(pendiente de traducción)
access.redhat.com/solutions/448263
0 comentarios