SOLVED - Re: [Samba] Windows 2000/2003 shares - danish character problem.

2004-08-05 Thread Martin Moeller
Forwarding didn't work. Trying again...

Hello-lo-o All-anybody?-none_I_guess,,.

I have managed to get the 'ø' (o-slash) I need by using 'cifs' to mount
my shares in stead of 'smbfs'. Here is an example:

mount -t cifs //10.20.30.40/data /mnt/Server -o
user=someuser,password=somepassword,iocharset=iso8859-1

(without iocharset you get UTF8, which is fine for the most part, but
not on all systems). Various other options can be specified, such as uid
and gid.
I get many error messages of various kinds if I do not explicitly state
'password=' (on Mandrake against W2K server). 

On SuSE this works:
martin:/mnt # mount -t cifs //w2k/inetpub windows/ -o
username=martin,iocharset=iso8859-1
Password:

On Mandrake it wouldn't work unless I used the IP address in stead of
the NetBEUI name of the server. That stumped me for a while...

This worked really well on SuSE Linux 9.1, but I needed to update the
kernel on Mandrake 10 for it to function. I fetched this one:

ftp://ftp.sunet.se/pub/Linux/distributions/mandrakelinux/devel/10.1/
i586/Mandrake/RPMS/kernel-2.6.8.0.rc1.1mdk-1-1mdk.i586.rpm
(one line)

It is possible that all I needed to change was NetBEUI name to IP, but
the error messages were different on the two kernels..
 
The latest pam_mount works with cifs, but apparently doesn't remember to
add '-lz' to the Makefiles so you'll need to help it out there...

The options to pam_mount for cifs are bugging me right now, but I should
have a handle on that soon.

So, fellow Scandinavians, if you are lacking parts of you native
alphabet, try mounting with 'cifs' in stead of 'smbfs' and see what
happens.

I hope others will find this useful, since I have not found a single
thing out there that mentions this as a possible solition for native
alphabets gone wrong...

-- 
###

Martin Moeller
Liga LinDist ApS.
Faelledvej 16D
DK-2200  Copenhagen N
Tel: +45 35 36 95 05
Fax: +45 35 36 92 05

http://www.liga.dk
mailto: [EMAIL PROTECTED]


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Fwd: SOLVED - Re: [Samba] Windows 2000/2003 shares - danish character problem.]

2004-08-04 Thread Martin Moeller
Apparently this never made the list. I guess I hit the wrong reply
button :-/ - Enjoy!
-- 
###

Martin Moeller
Liga LinDist ApS.
Faelledvej 16D
DK-2200  Copenhagen N
Tel: +45 35 36 95 05
Fax: +45 35 36 92 05

http://www.liga.dk
mailto: [EMAIL PROTECTED]

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Windows 2000/2003 shares - danish character problem.

2004-07-22 Thread Martin Moeller
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   91 (0x5B)
smb_vwv[ 2]=0 (0x0)
smb_bcc=50
17567: session setup ok
size=49
smb_com=0x75
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=1
smb_tid=38912
smb_pid=17567
smb_uid=2051
smb_mid=3
smt_wct=3
smb_vwv[ 0]=  255 (0xFF)
smb_vwv[ 1]=   49 (0x31)
smb_vwv[ 2]=1 (0x1)
smb_bcc=8
17567: tconx ok
[EMAIL PROTECTED] cecilie]# ls -l Server/In
Info1   Internationalt
[EMAIL PROTECTED] cecilie]# ls -l Server/Internationalt/
totalt 36
drwxr-xr-x  1 root root 4096 jul 17 09:55 1WHRAP_ansogning/
drwxr-xr-x  1 root root 4096 jul 17 09:55 2WHRAP_ansogning/
drwxr-xr-x  1 root root 4096 jul 17 09:56 Int1/
drwxr-xr-x  1 root root 4096 jul 17 09:56 Int2/
drwxr-xr-x  1 root root 4096 jul 20 09:19 Int_generelt/
drwxr-xr-x  1 root root 4096 jul 17 09:56 Intstud1/
drwxr-xr-x  1 root root 4096 jul 17 09:56 Intstud2/
drwxr-xr-x  1 root root 4096 jul 17 09:56 Intstud3/
drwxr-xr-x  1 root root 4096 jul 19 15:47 NGO Aids-Netværk/
[EMAIL PROTECTED] cecilie]# ls -l Server/Internationalt/2WHRAP_ansogning/
totalt 0

ons, 2004-07-21 kl. 16:06 skrev Martin Moeller:
 Hello all.
 
 I have been given an assignment to mount a share automatically for each
 user using a given Linux machine (Mandrake 10 in this case). This is
 working fine, thanks to pam_mount, BUT:
 
 The mounted share contains national characters like this: æ ø å.
 
 The problem I'm having is that when I mount these on Linux the 'ø' looks
 like 'o' but cannot be accessed like that. It says the file or directory
 doesn't exist (and it has a point). I have seen this on both Windows
 2000 and Windows 2003 Server. Interestingly enough there are no problems
 with Windows XP, as long as I use codepage=cp850 to mount with.
 
 I have tried these codepages: cp437, cp850, cp865, cp1250, cp1251, utf8
 I even tried 'latin1' just to see what would happen.
 
 I guess there is something that should be changed on the Windows machine
 for this to work? If so does anyone know what that would be?
 
 Part of the problem is that it is a literal 'o' that is shown in the
 Linux filesystem but when this filename is requested of the Windows
 server it of course denies any knowledge of such a thing.
 
 When I write a file that has 'æøå' *inside* there are no problems
 displaying that. I have tried googling for clues for quite a while now
 and haven't found that much other than 'chcp 850' on the Windows
 machine. This doesn't seem to alleviate the problem when the Windows box
 is the server... Is it a matter of forcing cp850 at a much earlier state
 (running just chcp gives '437')?
 
 Any takers? :)
-- 
###

Martin Moeller
Liga LinDist ApS.
Faelledvej 16D
DK-2200  Copenhagen N
Tel: +45 35 36 95 05
Fax: +45 35 36 92 05

http://www.liga.dk
mailto: [EMAIL PROTECTED]


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Windows 2000/2003 shares - danish character problem.

2004-07-21 Thread Martin Moeller
Hello all.

I have been given an assignment to mount a share automatically for each
user using a given Linux machine (Mandrake 10 in this case). This is
working fine, thanks to pam_mount, BUT:

The mounted share contains national characters like this: æ ø å.

The problem I'm having is that when I mount these on Linux the 'ø' looks
like 'o' but cannot be accessed like that. It says the file or directory
doesn't exist (and it has a point). I have seen this on both Windows
2000 and Windows 2003 Server. Interestingly enough there are no problems
with Windows XP, as long as I use codepage=cp850 to mount with.

I have tried these codepages: cp437, cp850, cp865, cp1250, cp1251, utf8
I even tried 'latin1' just to see what would happen.

I guess there is something that should be changed on the Windows machine
for this to work? If so does anyone know what that would be?

Part of the problem is that it is a literal 'o' that is shown in the
Linux filesystem but when this filename is requested of the Windows
server it of course denies any knowledge of such a thing.

When I write a file that has 'æøå' *inside* there are no problems
displaying that. I have tried googling for clues for quite a while now
and haven't found that much other than 'chcp 850' on the Windows
machine. This doesn't seem to alleviate the problem when the Windows box
is the server... Is it a matter of forcing cp850 at a much earlier state
(running just chcp gives '437')?

Any takers? :)

-- 
###

Martin Moeller
Liga LinDist ApS.
Faelledvej 16D
DK-2200  Copenhagen N
Tel: +45 35 36 95 05
Fax: +45 35 36 92 05

http://www.liga.dk
mailto: [EMAIL PROTECTED]


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba