'login error'에 해당되는 글 1건

  1. 2019.06.17 [samba] windows 7 system error 86

[samba] windows 7 system error 86

Personal Computer/Linux 2019. 6. 17. 16:59 posted by tolkien

ubuntu 18.04를 판올림한 다음에 이것저것 service가 안되는 것이 몇몇 있어서

그때그때 마다 해결하면서 쓰고 있다.

linux desktop에 samba를 설정해놓고, 회사 노트북에서 이를 당겨 쓰고 있다. 아래와 같이

    Z: drive of windows 7 notebook == /home/tolkien/tmp of linux desktop

작업환경이 linux desktop이다보니 자료던 뭐던 linux desktop에서 찾고 보게 되고,

windows 7 notebook은 email, 또는 m$ office를 이용해서 출력할 때만 쓰게 된다.

(누군 libre office를 써서 linux desktop에서 출력까지 하던데.)

여하튼 이렇게 연결해놓고 쓰고 있었는데, 갑자기 접속이 안되는 것이다.

탐색기로 보면 뭔가 요란하게 나오는데, 결론은 username 하고 password가 틀리다는거다.

 

응? 그래서, 내가 기억하고 있는 id/passwd가 틀렸나보다 생각하고,

linux desktop에서 smbclient를 써서 확인해보면 잘 접속이 된다.

    smbclient -L <linux desktop IP> -U tolkien

혹시나해서 MacBook에서 같은 실험. 잘 접속이 된다.

이건 windows 7이 뭔가 바뀌었다는 얘기. 회사 notebook이다보니 이런저런 이유로 설정이 바뀌어져 있는 경우가 있다.

googling해서 cmd.exe에서 test를 해봤다.

    c:\Users\john> net use L: \\myserver\myshare /u:myuser mypassword

    System error 86 - The specified network password is not correct.

System error 86? 좀 더 확인해보니까, security policy를 바꾸어보라고 한다.

    c:\Users\john> secpol.msc
    #   -> Local Policies
    #    -> Network Security : LAN Manager Authentification level
    #       change it to 'Send NTLMv2 response only. Refuse LM & NTLM'

그런데, 회사에서 설정바꿀 수 없게 lock을 걸었다!

 LAN Manager Authentification level이

 'Send LM & NTLM - use NTLMv2 session security if negotiated' 고정되어 있슴.

 

다행히 누가 댓글로 다른 해결책을 알려줬다. smb.conf 에 아래 한줄 추가

    ntlm auth = true

 

오늘도 이렇게 평화는 지켜졌슴.