Description of problem: You cannot set the plain text password flag for mounting samba shares of an old samba server that does not supports password encryption.
Version-Release number of selected component (if applicable): kernel-188.8.131.52-43.fc11.x86_64
How reproducible: Start a 2.6.30 kernel and issue an echo command to alter the security flags of CIFS. It worked fine till 2.6.29.
Steps to Reproduce:
1. echo '0x30' > /proc/fs/cifs/SecurityFlags
echo: write error: Invalid argument
Expected results: "cat /proc/fs/cifs/SecurityFlags" should have reported the new security flags and you should have been able to mount samba shares supporting only plain text passwords (CIFS_WEAK_PW_HASH).
Additional info: A workaround would be to compile an old samba version that supports smbfs. You may also need smbfs support on your kernel, since fedora default kernel does not support smbfs.
If you are only using plaintext, this should work:
echo '0x20' > /proc/fs/cifs/SecurityFlags
This problem was caused by:
That added ntlmssp support to the flags (0x80) but seems to have inadvertently removed lanman (0x10).
Should be fixed in 184.108.40.206-56.rc1
The flag 0x20 is accepted, but my mount attempt returns:
mount error(95): Operation not supported
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
kernel-220.127.116.11-64.fc11 has been submitted as an update for Fedora 11.
kernel-18.104.22.168-64.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
Indeed, I've updated my kernel today and it works fine. I can access again old Solaris samba shares using plain text passwords. Thank you very much!