Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
Katariya Rahul wrote: This is a windows share. But I am trying to mount it from Linux. I tried iocharset=utf8 option, but it didn't work. If I map the same share from laptop (Windows OS), it work fine. I enabled CIFS debugging. Following are errors: == kernel: Status code returned 0xc06d NT_STATUS_LOGON_FAILURE !!Mapping smb error code 5 to POSIX err -13 !! nt_status is c06d == I am using username : ùrkkk and password ùrkkk. And user ùrkkk is in Administrators group. ~rahul Instead of using username and password options, try using a credentials file. Create the file on Windows, and it should have the right encoding even if it doesn't look right if you cat it in Linux. Moray. “To err is human; to purr, feline.” -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
This is a windows share.nbsp; But I am trying to mount it from Linux. I tried iocharset=utf8 option, but it didn't work. If I map the same share from laptop (Windows OS), it work fine. I enabled CIFS debugging. Following are errors: == kernel: Status code returned 0xc06d NT_STATUS_LOGON_FAILURE nbsp; !!Mapping smb error code 5 to POSIX err -13 !! nbsp;nt_status is c06d == I am using username : ùrkkknbsp; and password ùrkkk. And user ùrkkk is in Administrators group. ~rahulnbsp; On Sun, 27 Mar 2011 14:00:38 +0530 Jeff Layton lt;jlay...@redhat.comgt; wrote gt;On Fri, 25 Mar 2011 10:44:42 + gt;Moray Henderson lt;moray.hender...@ict-software.orggt; wrote: gt; gt;gt; Katariya Rahul wrote: gt;gt; gt; I have French CIFS server. gt;gt; gt; gt;gt; gt; If I try to map a share from any windows machine with non-ascii (UTF-8, gt;gt; gt; french characters are part of password) password, it is successful. gt;gt; gt; gt;gt; gt; But If I try from linux machine, it fails. gt;gt; gt; gt;gt; gt; mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€amp;nbsp; /tmp/rahul -o gt;gt; gt; user=ùù,password=ùù,domain=eKKDr gt;gt; gt; mount error 13 = Permission denied gt;gt; gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) gt;gt; gt; amp;nbsp; gt;gt; gt; gt;gt; gt; Does CIFS supports non-ascii password? gt;gt; gt;gt; On the Linux machine, what output does the locale command give you? gt;gt; gt;gt; If you type the password at the Linux prompt where you can see it, do you get the right characters? If the keyboard isn't set right in Linux, it won't work. To see exactly how the password is being encoded, use echo lt;passwordgt; | xxd (although obviously don't post the output for a real password here). gt;gt; gt;gt; Was the password set from Windows or from Linux? If from Windows, then I would expect the encoding to be in either UTF-16 or the Windows locale 8-bit encoding, not UTF-8. For example, Latin Small Letter E With Acute is encoded as 0xE9 in the Windows Western encoding, 0xE900 in UTF-16, and 0xC3A9 in UTF-8. gt;gt; gt;gt; Does it work any better if you use Samba's own mount.cifs program directly rather than going through mount? gt;gt; gt;gt; I do not know what (if any) character encoding translation the cifs module does. Check whether the locale and testparm -vs | grep char on your CIFS server match the settings on the Linux machine you are doing the mapping from. gt;gt; gt;gt; gt; gt;Linux CIFS generally treats passwords as an opaque series of bytes. It gt;does no translation of that piece. gt; gt;-- gt;Jeff Layton lt;jlay...@redhat.comgt; gt; -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
On Fri, 25 Mar 2011 10:44:42 + Moray Henderson moray.hender...@ict-software.org wrote: Katariya Rahul wrote: I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? On the Linux machine, what output does the locale command give you? If you type the password at the Linux prompt where you can see it, do you get the right characters? If the keyboard isn't set right in Linux, it won't work. To see exactly how the password is being encoded, use echo password | xxd (although obviously don't post the output for a real password here). Was the password set from Windows or from Linux? If from Windows, then I would expect the encoding to be in either UTF-16 or the Windows locale 8-bit encoding, not UTF-8. For example, Latin Small Letter E With Acute is encoded as 0xE9 in the Windows Western encoding, 0xE900 in UTF-16, and 0xC3A9 in UTF-8. Does it work any better if you use Samba's own mount.cifs program directly rather than going through mount? I do not know what (if any) character encoding translation the cifs module does. Check whether the locale and testparm -vs | grep char on your CIFS server match the settings on the Linux machine you are doing the mapping from. Linux CIFS generally treats passwords as an opaque series of bytes. It does no translation of that piece. -- Jeff Layton jlay...@redhat.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
On Thu, Mar 24, 2011 at 12:26 AM, Katariya Rahul rahulrahu...@rediffmail.com wrote: Hi , I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba Are you able to use smbclient command successfully on this very same machine? If you can, I guess we can consider this as a bug in cifs client? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
Katariya Rahul wrote: I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? On the Linux machine, what output does the locale command give you? If you type the password at the Linux prompt where you can see it, do you get the right characters? If the keyboard isn't set right in Linux, it won't work. To see exactly how the password is being encoded, use echo password | xxd (although obviously don't post the output for a real password here). Was the password set from Windows or from Linux? If from Windows, then I would expect the encoding to be in either UTF-16 or the Windows locale 8-bit encoding, not UTF-8. For example, Latin Small Letter E With Acute is encoded as 0xE9 in the Windows Western encoding, 0xE900 in UTF-16, and 0xC3A9 in UTF-8. Does it work any better if you use Samba's own mount.cifs program directly rather than going through mount? I do not know what (if any) character encoding translation the cifs module does. Check whether the locale and testparm -vs | grep char on your CIFS server match the settings on the Linux machine you are doing the mapping from. Moray. “To err is human; to purr, feline.” -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
Hallo, Katariya, Du meintest am 24.03.11: I have French CIFS server. [...] mount -t cifs //MACHINE/DatasetFIGS_ùÉ??ÄÑ£??¬nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? Maybe it's not only a problem with the password; the path seems to be non-ASCII too. And non-ASCII has many representations - not only UTF-8. Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
I am able to mount same path when password is in ascii. But it gives problem when it is non-ascii. On Thu, 24 Mar 2011 12:32:56 +0530 Helmut Hullen lt;hul...@t-online.degt; wrote gt;Hallo, Katariya, gt; gt;Du meintest am 24.03.11: gt; gt;gt; I have French CIFS server. gt; gt;[...] gt; gt;gt; mount -t cifs //MACHINE/DatasetFIGS_ùÉ??ÄÑ£??¬amp;nbsp; /tmp/rahul gt;gt; -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission gt;gt; denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) gt;gt; amp;nbsp; gt; gt;gt; Does CIFS supports non-ascii password? gt; gt;Maybe it's not only a problem with the password; the path seems to be gt;non-ASCII too. gt; gt;And non-ASCII has many representations - not only UTF-8. gt; gt;Viele Gruesse! gt;Helmut gt;-- gt;To unsubscribe from this list go to the following URL and read the gt;instructions: https://lists.samba.org/mailman/options/samba gt; -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Re: [Samba] CIFS mount with non-ascii (UTF8) password is not working
Am Donnerstag, 24. März 2011, 06:26:04 schrieb Katariya Rahul: Hi , I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? can you please try by using the cifs mount option iocharset=utf8 Cheers, Günter -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
[Samba] CIFS mount with non-ascii (UTF8) password is not working
Hi , I have French CIFS server. If I try to map a share from any windows machine with non-ascii (UTF-8, french characters are part of password) password, it is successful. But If I try from linux machine, it fails. mount -t cifs //MACHINE/DatasetFIGS_ùÉÀÊÚÎÏŒÄÑ£₣€nbsp; /tmp/rahul -o user=ùù,password=ùù,domain=eKKDr mount error 13 = Permission denied Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) nbsp; Does CIFS supports non-ascii password? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba