2016年7月12日 星期二

Ubuntu mount folder automatically

Create your username/password file for access server

# sudo -s
# nano /root/.smbcredentials

Add the following to it

username=deray.xu
password=userpassword


Edit /etc/fstab

#nano /etc/fstab

Add the following to it
//file.server.com/folder /home/deray/mount cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777,domain=deray.com,sec=ntlm 0 0


直接寫上帳號密碼的方式:
//file.server.com/folder /home/deray/mount smbfs defaults,username=deray.xu,password=userpassword,_netdev,file_mode=0777,dir_mode=0777 0 1


安裝cifs支援
# sudo apt-get install cifs-utils

沒有留言:

張貼留言

Uninstalling HEVC Video Extensions from Windows

Microsoft store packages are usually APPX format installations (HEVC Video Extensions is installed as APPX package) You will need to use Pow...