Katariya Rahul
2011-Mar-24 05:26 UTC
[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_????????????? /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) Does CIFS supports non-ascii password?
Helmut Hullen
2011-Mar-24 06:27 UTC
[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_?????????????? /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) > > 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
Katariya Rahul
2011-Mar-24 13:27 UTC
[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" <Hullen at t-online.de> wrote >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 >
Günter Kukkukk
2011-Mar-25 03:51 UTC
[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_????????????? /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) > > > Does CIFS supports non-ascii password?can you please try by using the cifs mount option iocharset=utf8 Cheers, G?nter
Moray Henderson
2011-Mar-25 10:44 UTC
[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_????????????? /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) > > > 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.?
Shirish Pargaonkar
2011-Mar-27 02:23 UTC
[Samba] CIFS mount with non-ascii (UTF8) password is not working
On Thu, Mar 24, 2011 at 12:26 AM, Katariya Rahul <rahulrahulse at 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_????????????? /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) > > > 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/sambaAre 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?
Katariya Rahul
2011-Mar-30 13:34 UTC
[Samba] CIFS mount with non-ascii (UTF8) password is not working
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 0xc000006d NT_STATUS_LOGON_FAILURE !!Mapping smb error code 5 to POSIX err -13 !! nt_status is c000006d ============================================================= I am using username : ?????rkkk and password ?????rkkk. And user ?????rkkk is in Administrators group. ~rahul On Sun, 27 Mar 2011 14:00:38 +0530 Jeff Layton <jlayton at redhat.com> wrote >On Fri, 25 Mar 2011 10:44:42 +0000 >Moray Henderson <Moray.Henderson at 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 <jlayton at redhat.com> >