[linux-cifs-client] Mounting CIFS gives me permission denied

Neil Aggarwal neil at JAMMConsulting.com
Tue Oct 12 00:32:48 GMT 2004


Steve:

Here is something strange:

When I do this command:
	smbclient -L 192.168.1.2 -U na	
It asks me for the password and then it gives 
me a list of the shares on the machine.

But, when I do this command:
	smbclient -L 192.168.1.2 -U na/HOMEXCORP
It asks for a password and then it gives me this
message:
session setup failed: NT_STATUS_LOGON_FAILURE

When I try either of these:
  smbmount //192.168.1.2/GDrive /mnt/GDrive -o user=na  
  smbmount //192.168.1.2/GDrive /mnt/GDrive -o user=na/HOMEXCORP
I get these error messages:
  cli_negprot: SMB signing is mandatory and we have disabled it.
  5889: protocol negotiation failed
  SMB connection failed

When I try either of these:
 mount.cifs //192.168.1.2/GDrive /mnt/GDrive -o user=na 
 mount.cifs //192.168.1.2/GDrive /mnt/GDrive -o user=na,domain=HOMEXCORP
It asks me for a password and I get these messages: 
  mount error 13 = Permission denied
  Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
	
Any ideas why the smbclient list works but smbmount and 
mount.cifs do not?

Thanks,
	Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by
17% or more in 6 months or less! http://newsletter.JAMMConsulting.com

-----Original Message-----
From: linux-cifs-client-bounces+neil=jammconsulting.com at lists.samba.org
[mailto:linux-cifs-client-bounces+neil=jammconsulting.com at lists.samba.org]
On Behalf Of Steven French
Sent: Monday, October 11, 2004 1:30 PM
To: Neil Aggarwal; linux-cifs-client at lists.samba.org
Subject: Re: [linux-cifs-client] Mounting CIFS gives me permission denied



> When I try this, I get:
> mount error 13 = Permission denied 

A few possbile causes come to mind   
1) Obviously a bad user or password (from a windows box you can override the
user and password explicitly on NET USE or use smbclient as an alternative
to try a different client) 
2) specifying a user who is configured to not allow authentication across
the network 
3) specifying a domain (or using the default domain) which does not match
the servers domain 
4) restricted host (windows allows you to configure workstations that are
not allowed to mount to a share) 
5) windows is configured for mandatory use of ntlmv2 or kerberos security
(cifs support for ntlmv2 is not enabled in /proc/fs/cifs by default and cifs
kerberos support is not complete) 



Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com



More information about the linux-cifs-client mailing list