[linux-cifs-client] cifs sec=none issue

Matt Woodson mwoodson at gurulabs.com
Fri Jan 19 23:55:39 GMT 2007


All,

I'm having an issue with the sec=none option.  I can't seem to get the 
sec=none option to work. It always seems to pass a username through.

I am testing this on 3 different distros, FC6, SLES10, and SL10.1.  I 
have done tcpdumps and and I have also upped the debug log on samba.
If I understand this correctly, sec=none should send a "null", or empty, 
username to the samba server.  This doesn't seem to be what I am 
experiencing. 

I have tried the -t smbfs and this and it appears that smbfs first tries 
the user that one is logged in as, and then attempts to send a null user 
if the user doesn't work.   cifs appears to behave differently.

Here are the versions I am using:

client:

client # cat /proc/fs/cifs/DebugData
Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.40
Active VFS Requests: 0
Servers:
Shares:
station6:/proc/fs/cifs #


server:

server # rpm -q samba
samba-3.0.22-13.16

------------------------------------------------------------------------------------------------------------------------

Now, when trying to connect, I will show the commands I issued on the 
client, and the log files from server:
----------------------------client----------------------------------------------------------
client # mount -t cifs -o guest //server/tmp /mnt/tmp --verbose
parsing options: rw,guest

mount.cifs kernel mount options 
unc=//server\tmp,ip=10.100.0.13,user=root,ver=1,rw
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
----------------------------------------server samba 
log------------------------------------------------
  check_ntlm_password:  Authentication for user [root] -> [root] FAILED 
with error NT_STATUS_NO_SUCH_USER
[2007/01/19 16:50:58, 3] smbd/error.c:error_packet(146)
  error packet at smbd/sesssetup.c(1063) cmd=115 (SMBsesssetupX) 
NT_STATUS_LOGON_FAILURE
-------------------------------------------------------------------------------------------------

As expected, this should not work.

Now, when I run it with the sec=none option, I get the same results:
--------------------------------client-----------------------------------------------
# mount -t cifs -o guest,sec=none //server/tmp /mnt/tmp --verbose
parsing options: rw,guest,sec=none

mount.cifs kernel mount options 
unc=//server\tmp,ip=10.100.0.13,user=root,ver=1,rw,sec=none
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
------------------------------------server samba 
log---------------------------------------------------
  check_ntlm_password:  Authentication for user [root] -> [root] FAILED 
with error NT_STATUS_NO_SUCH_USER
[2007/01/19 16:51:55, 3] smbd/error.c:error_packet(146)
  error packet at smbd/sesssetup.c(1063) cmd=115 (SMBsesssetupX) 
NT_STATUS_LOGON_FAILURE
[2007/01/19 16:51:55, 3] smbd/process.c:timeout_processing(1340)
-----------------------------------------------------------------------------------------

Again, this doesn't work.  In the verbose output of cifs it even shows 
it is going to pass the root user even though sec=none.

Is there something else I am missing?

Thanks

Matt








More information about the linux-cifs-client mailing list