简体   繁体   中英

Using 'cifs' to connect to windows share

I am working with UBUNTU 12.04, and am trying to connect to a windows share (SBS2008r2).

If i use the command:

sudo mount -t cifs //domain/share /media/files -o credentials=/home/linux/.smbcredentials

my folder gets mounted correctly.

However, when i try to make this mount automatically by adding the following line in the /etc/fstab:

//domain/share /media/filescredentials=/home/linux/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

and then run the command:

sudo mount -a

I get the following error:

mount error(95): Operation not supported

What am i missing?

I had the same problem and solved it by removing the sec=ntlm option.

Try adding this to /etc/fstab:

//domain/share /media/filescredentials=/home/linux/.smbcredentials,iocharset=utf8 0 0

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM