grocanar
bonjour
j'ai un serveur CIFS qui ne supporte que les clear text password ( je sais c'est mal mais bon j'ai pas le choix )
quand je lance la commande
mount --verbose -t cifs -o "username=doutrele" //cobra3.int-evry.fr/doutrele /mnt
parsing options: rw,username=doutrele
Password:
mount.cifs kernel mount options unc=//cobra3.int-evry.fr\doutrele,ip=157.159.15.15,pass=XXXXXXXX,ver=1,rw,username=doutrele
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
le mot de passe est bon
dans le fichier /var/log/secure j'ai
Jun 22 22:43:52 b06-14 kernel: CIFS VFS: Send error in SessSetup = -13
Jun 22 22:43:52 b06-14 kernel: CIFS VFS: cifs_mount failed w/return code = -13
Jun 22 22:52:01 b06-14 kernel: CIFS VFS: Server requests plain text password but client support disabled
Jun 22 22:52:03 b06-14 kernel: Status code returned 0xc000006d NT_STATUS_LOGON_FAILURE
comment faire pour l'activer cote client?
grocanar
bon j'ai trouve ca
dans le fichier
/etc/samba/smb.conf
j'ai rajoute
client plaintext auth = yes
client lanman auth = yes
maintenant smbclient fonctionne mais pas le mount.cifs
en faisant
echo 0x39 > /proc/fs/cifs/SecurityFlags
j'arrive a resoudre le probleme du clear text password mais j'obtiens un autre message
mount --verbose -t cifs -o "username=doutrele,domain=micro" //cobra3.int-evry.fr/doutrele /mnt/
parsing options: rw,username=doutrele,domain=micro
Password:
mount.cifs kernel mount options unc=//cobra3.int-evry.fr\doutrele,ip=157.159.15.15,pass=XXXXXXXX,ver=1,rw,username=doutrele,domain=micro
mount error 2 = No such file or directory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
la commande
smbclient //cobra3.int-evry.fr/doutrele -U doutrele
fonctionne parfaitement
grocanar
bon je continue mon debug
j'ai passe mon serveur en debug log level=10
voila ce que j'obtiens
[2008/06/23 10:52:51, 6] param/loadparm.c:lp_file_list_changed(3073)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Jun 23 10:46:02 2008
[2008/06/23 10:52:51, 3] smbd/oplock.c:init_oplocks(863)
init_oplocks: initializing messages.
[2008/06/23 10:52:51, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(276)
Linux kernel oplocks enabled
[2008/06/23 10:52:51, 10] lib/util_sock.c:read_smb_length_return_keepalive(623)
got smb length of 78
[2008/06/23 10:52:51, 3] lib/access.c:check_access(312)
check_access: no hostnames in host allow/deny list.
[2008/06/23 10:52:51, 2] lib/access.c:check_access(323)
Allowed connection from (157.159.15.193)
[2008/06/23 10:52:51, 6] smbd/process.c:process_smb(1068)
got message type 0x0 of len 0x4e
[2008/06/23 10:52:51, 3] smbd/process.c:process_smb(1069)
Transaction 0 of length 82
[2008/06/23 10:52:51, 5] lib/util.c:show_msg(506)
[2008/06/23 10:52:51, 5] lib/util.c:show_msg(516)
size=78
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=0
smb_flg2=49153
smb_tid=0
smb_pid=29870
smb_uid=0
smb_mid=1
smt_wct=0
smb_bcc=43
[2008/06/23 10:52:51, 10] lib/util.c:dump_data(2283)
[000] 02 4C 4D 31 2E 32 58 30 30 32 00 02 4C 41 4E 4D .LM1.2X0 02..LANM
[010] 41 4E 32 2E 31 00 02 4E 54 20 4C 4D 20 30 2E 31 AN2.1..N T LM 0.1
[020] 32 00 02 50 4F 53 49 58 20 32 00 2..POSIX 2.
[2008/06/23 10:52:51, 3] smbd/process.c:switch_message(927)
switch message SMBnegprot (pid 31321) conn 0x0
[2008/06/23 10:52:51, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/06/23 10:52:51, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2008/06/23 10:52:51, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2008/06/23 10:52:51, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [LM1.2X002]
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [LANMAN2.1]
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [NT LM 0.12]
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_negprot(505)
Requested protocol [POSIX 2]
[2008/06/23 10:52:51, 10] lib/util.c:set_remote_arch(2258)
set_remote_arch: Client arch is 'CIFSFS'
[2008/06/23 10:52:51, 6] param/loadparm.c:lp_file_list_changed(3073)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Jun 23 10:46:02 2008
[2008/06/23 10:52:51, 5] smbd/connection.c:claim_connection(182)
claiming 0
[2008/06/23 10:52:51, 6] param/loadparm.c:lp_file_list_changed(3073)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Mon Jun 23 10:46:02 2008
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_nt1(351)
not using SPNEGO
[2008/06/23 10:52:51, 3] smbd/negprot.c:reply_negprot(606)
Selected protocol NT LM 0.12
[2008/06/23 10:52:51, 5] smbd/negprot.c:reply_negprot(612)
negprot index=2
[2008/06/23 10:52:51, 5] lib/util.c:show_msg(506)
[2008/06/23 10:52:51, 5] lib/util.c:show_msg(516)
size=81
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=128
smb_flg2=49153
smb_tid=0
smb_pid=29870
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]= 2 (0x2)
smb_vwv[ 1]=12801 (0x3201)
smb_vwv[ 2]= 256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]= 65 (0x41)
smb_vwv[ 5]= 0 (0x0)
smb_vwv[ 6]= 256 (0x100)
smb_vwv[ 7]=22784 (0x5900)
smb_vwv[ 8]= 122 (0x7A)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=33011 (0x80F3)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=35507 (0x8AB3)
smb_vwv[13]= 3716 (0xE84)
smb_vwv[14]=51413 (0xC8D5)
smb_vwv[15]=34817 (0x8801)
smb_vwv[16]= 255 (0xFF)
smb_bcc=12
[2008/06/23 10:52:51, 10] lib/util.c:dump_data(2283)
[000] 4D 00 49 00 43 00 52 00 4F 00 00 00 M.I.C.R. O...
[2008/06/23 10:52:52, 10] lib/util_sock.c:read_data(525)
read_data: read of 4 returned 0. Error = Success
[2008/06/23 10:52:52, 10] lib/util_sock.c:receive_smb_raw(671)
receive_smb_raw: length < 0!
[2008/06/23 10:52:52, 3] smbd/process.c:timeout_processing(1329)
timeout_processing: End of file from client (client has disconnected).
[2008/06/23 10:52:52, 5] lib/gencache.c:gencache_shutdown(94)
Closing cache file
[2008/06/23 10:52:52, 5] libsmb/namecache.c:namecache_shutdown(79)
namecache_shutdown: netbios namecache closed successfully.
[2008/06/23 10:52:52, 3] smbd/sec_ctx.c:set_sec_ctx(241)
setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/06/23 10:52:52, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2008/06/23 10:52:52, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2008/06/23 10:52:52, 5] smbd/uid.c:change_to_root_user(288)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2008/06/23 10:52:52, 3] smbd/connection.c:yield_connection(69)
Yielding connection to
[2008/06/23 10:52:52, 3] smbd/server.c:exit_server_common(768)
Server exit (normal exit)
[root@cobra3 /var/log/samba]
$
ce qui m'ennuie un peu ce sont ces lignes
2008/06/23 10:52:51, 5] auth/auth_util.c:debug_nt_user_token(448)
NT user token: (NULL)
[2008/06/23 10:52:51, 5] auth/auth_util.c:debug_unix_user_token(474)
UNIX token of user 0
pourquoi le NT user token est a NULL alors que j'ai passe le parametre user