Home > IT > Mount Windows share using Ubuntu

Mount Windows share using Ubuntu

July 23, 2008

I’m not using Ubuntu much, but this works – at least in my company :P

Solution 1: Permently mounted.

1.a/ Create a credential file:

vi /home/fongthai/.smbcredentials

with this contents:
username=your_window_username@yourdomain
password=you_password

Ex:

username=fongthai@zenezas.info
password=Re@l_2-tEk

1.b/ Add this line to the bottom of /etc/fstab:

//192.168.5.5/public_share/ /home/fongthai/network_drive smbfs credentials=/home/fongthai/.smbcredentials,uid=1000,gid=1000

Note:
192.168.5.5 is server address
/home/fongthai/networkdrive is a mounted location of server share
smbfs is key word for samba share
/home/fongthai/.smbcredentials is a credential file
1000 is userid and group id of account fongthai

source: https://help.ubuntu.com/community/MountWindowsSharesPermanently

Solution 2: One command:


mount -t cifs //192.168.5.5/public_share /home/fongthai/smb_mount/ -o username=fongthai

It will ask for password, don’t need credential file, but you have to mount each time you restart your PC.

Source: a search from a guys next to me – redhunter! thank you for this.

Categories: IT Tags: , , , , , , , ,
  1. August 1, 2008 at 1:26 PM

    nice tips

  1. No trackbacks yet.
Comments are closed.
%d bloggers like this: