The below step by step how to create auto mounting smb share at ubuntu 8.04. Smb share is running at SME server 7.2.
1. Download and Install smbfs.
$ sudo apt-get install smbfs
2. Create new directory to mounting
$ sudo mkdir /media/temp
3 create file to save user and password
$ gksudo gedit /root/.smbcredentials
Add the following lines:
username=myusername
password=mypassword
4. Change the access files
$ sudo chmod 700 /root/.smbcredentials
5. Edit files fstab
$gksudo gedit /etc/fstab
To mount windows server, add the following lines:
//IP-sever/TEMP /media/temp/ cifs credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=1001 0 0
To mount samba linux server, add the following lines:
//IP-server/TEMP /media/temp/ smbfs credentials=/root/.smbcredentials,uid=1001 0 0
No comments:
Post a Comment