What credentials should I use to access a Windows share?

Posted by JMCF125 on Ask Ubuntu See other posts from Ask Ubuntu or by JMCF125
Published on 2013-10-27T21:45:37Z Indexed on 2013/10/27 22:01 UTC
Read the original article Hit count: 220

Filed under:
|
|
|

Hi,

I have installed Samba and CIFS and all that, followed a bunch of tutorials, but still I can't access a share in the separate Windows 7 machine. Before I could access a share in Ubuntu from Windows, but although now I can't for whatever reason; the error of the attempt to mount the Windows share is the same: 13, asking for credentials (the computer with Windows is off now, but I can add the exact error message later).

In /etc/fstab I have:

# ... (help info) ...
# <file system>                            <mount point>      <type>     <options>                                  <dump> <pass>
# ... (mounting points that don't matter for the question) ...
//192.168.1.2/C\:/Users/Public/Documents   /srv/Z\:/          cifs       user=guest,password=,uid=1000,iocharset=utf8   0      0

I also tried options such as username=guest,uid=1000,iocharset=utf8 and guest,uid=1000,iocharset=utf8, which, of course, don't work. What user am I supposed to use? (user=user; username=user; my credentials in the Windows and Ubuntu machines do not work, at least with the syntax I tried - similar to this).

Even if this worked it's not actually what I want. I wanted to setup an authentication for any one trying to access the drive (it's currently 777, for the Linux share as well) and put a limit/quota on the share's use (as I see Z:on Windows, it allows for the entire C:drive to be filled).

Thank you in advance. I'd be glad if you suggested a way to do this even without the last paragraph.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about windows-7