Tuesday, February 19, 2013

how to mount share windows on fedora



how to mount   share windows on fedora

mount -t cifs //IP_or_Hostname/windows_share/folder /home/user_mount/destination  -o uid=user_mount gid=group_user_mount username=windows_user,password=windows_password,domain=AD_domain, rw


Example:
#su - khonkaensoft
#mkdir /public_html/mnt

if done mkdir exit command to root user
with root user

#mount -t cifs //192.168.100.100/gallery/2013 /home/khonkaensoft/public_html/mnt  -o uid=khonkaensoft gid=khonkaensoft username=myuser,password=1234,domain=workgroup, rw


So configure auto mount in  etc/fstab:

#vi /etc/fstab

add buttom line

//192.168.100.100/gallery/2013 /home/khonkaensoft/public_html/mnt  -o uid=khonkaensoft gid=khonkaensoft username=myuser,password=1234,domain=workgroup,iocharset=utf8,mode=0777,dir_mode=07‌​77 0 0


reboot test auto mount

No comments:

Post a Comment

VirtualHost HTTP redirect to HTTPS

<VirtualHost *:80>     ServerName www.example.com     Redirect / https://www.example.com/ </VirtualHost> <VirtualHos...