0

I am trying to mount a Windows 7 share on Ubuntu Server 16.04 with no password using cifs.

sudo mount.cifs //win/share /media/win -o username=,passsword=,sec=ntlm 0 0

I get a permission denied error:

sudo mount.cifs //win/share /media/win -o username=win/user,passsword=,sec=ntlm 0 0

Also gives me a permission denied error.

In Windows 7, I have given permission to "Everyone" and have given share access to "Everyone". Both have full control.

If I try username=guest, I get a mount error 127 - key has expired. And if I exclude the password=, mount asks for a password and I again get mount error 13 - permission denied. I have also tried adding iocharset=uft8 and uid=1000 but that does not have an effect.

If anyone has any idea what I am doing wrong, I would appreciate the help. Thanks!

  • Please check this post. – d a i s y Feb 21 '17 at 5:50
  • Thanks for the tip. Unfortunately, that post doesn't deal with mounting shares without a password. – Jason Feb 22 '17 at 3:50
  • Since I wasn't able to make it work with an account with no password, I ended up making an account with a password and it connected with no issue. – Jason Feb 23 '17 at 4:21
  • So you just want to mount it only once.. Not every time.. – d a i s y Feb 23 '17 at 6:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.