[linux-cifs-client] Mounting without password?

Chris Shelton cshelton at indiana.edu
Wed May 10 13:28:26 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven,

On Wed, 10 May 2006 at 2:41pm, Steven Scholz wrote:

> if a share is accessable for "Everyone" I can mount it using every random
> username with no password.
> 
> If I do have a user on my Windows machine with no password and a share is
> accesable for this user I can't mount it.
> 
> Mounting with no password using
> 
>  mount -t cifs //10.0.2.10/test1 /mnt/intern -o user="Steven Scholz"
> 
> results in "NT_STATUS_ACCESS_DENIED"
> 
> Same goes for
> 
>  mount -t cifs //10.0.2.10/test1 /mnt/intern -o user="Steven Scholz",pass=
>  mount -t cifs //10.0.2.10/test1 /mnt/intern -o user="Steven Scholz",pass=""
> 
> Passing a random password shows "NT_STATUS_LOGON_FAILURE" which is fair enough.
> 
> Is there a way to use usernames without (or emtpy) passwords?

- From the cifs README:

  guest         Although ignored by the kernel component, the mount.cifs
        mount helper will not prompt the user for a password
        if guest is specified on the mount options.  If no 
        password is specified a null password will be used. 

Have you tried the following command line:

mount -t cifs //10.0.2.10/test1 /mnt/intern -o user="Steven Scholz",guest

chris

- -- 
Chris Shelton
- -

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEYep8M5TknMKatUwRAvCRAKCaIpa5I8z0Ka/OSjMakR+qe9pV5ACfbox5
JEWrDsAEVcvZ1j4GQVIW5d4=
=FpCu
-----END PGP SIGNATURE-----


More information about the linux-cifs-client mailing list