{"id":1541,"date":"2007-02-06T17:44:00","date_gmt":"2007-02-06T17:44:00","guid":{"rendered":"http:\/\/gleamynode.net\/articles\/1541\/a-samba-smbpasswd-problem-with-passwords-longer-than-14-characters"},"modified":"2022-12-28T01:46:37","modified_gmt":"2022-12-27T16:46:37","slug":"a-samba-smbpasswd-problem-with-passwords-longer-than-14-characters","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1541\/a-samba-smbpasswd-problem-with-passwords-longer-than-14-characters\/","title":{"rendered":"A Samba smbpasswd problem with passwords longer than 14 characters"},"content":{"rendered":"\n
\ud328\uc2a4\uc6cc\ub4dc \uae38\uc774\uac00 14\uc790 \uc774\uc0c1\uc77c \ub54c \uc0bc\ubc14 smbpasswd<\/tt> \ubb38\uc81c<\/p>\n
I recently switched to Gentoo Linux<\/a> due to some random problem with dmraid<\/tt> in Ubuntu Linux<\/a>. It was perfect at least for dmraid<\/tt> issues, but I realized again that it’s not really a kind Linux distribution after dealing with other various issues I’ve encountered so far.<\/p>\n \ucd5c\uadfc\uc5d0 \uc6b0\ubd84\ud22c \ub9ac\ub205\uc2a4<\/a>\uc5d0 \uc788\ub294 \ubb34\uc791\uc704\ub85c \ubc1c\uc0dd\ud558\ub294 dmraid<\/tt> \ubb38\uc81c \ub54c\ubb38\uc5d0 \uc820\ud22c \ub9ac\ub205\uc2a4<\/a>\ub85c \uc804\ud658\ud588\uc2b5\ub2c8\ub2e4. \uc801\uc5b4\ub3c4 dmraid<\/tt> \ubb38\uc81c\ub294 \uc644\ubcbd\ud558\uac8c \ud574\uacb0\ub418\uc5c8\uc9c0\ub9cc \uc9c0\uae08\uae4c\uc9c0 \ub2e4\ub978 \ub2e4\uc591\ud55c \ubb38\uc81c\ub97c \uacaa\uc73c\uba74\uc11c \uc820\ud22c\uac00 \uadf8\ub807\uac8c \uce5c\uc808\ud55c \ub9ac\ub205\uc2a4 \ubc30\ud3ec\ud310\uc740 \uc544\ub2c8\ub77c\ub294 \uac78 \ub2e4\uc2dc\uae08 \uae68\ub2eb\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n The craziest one is that smbpasswd<\/tt> allows me to set my password longer than 14 characters while the Samba client truncates my password to 14 characters before encrypting it and sending it to the Samba server, which causes a unexpected NT_STATUS_WRONG_PASSWORD<\/tt> error. Strictly speaking, it’s a limitation of Lanman protocol<\/a> , which is forced in ‘shared<\/tt>‘ security level, but why the hell should I know this detail!<\/p>\n \uac00\uc7a5 \ud669\ub2f9\ud55c \uac83\uc740 smbpasswd<\/tt>\ub85c 14\uc790 \uc774\uc0c1\uc758 \uc554\ud638\ub97c \uc124\uc815\ud560 \uc218 \uc788\ub294 \ubc18\uba74 \uc0bc\ubc14 \ud074\ub77c\uc774\uc5b8\ud2b8\ub294 \uc81c \uc554\ud638\ub97c 14\uc790\ub85c \uc798\ub77c\uc11c \uc554\ud638\ud654\ud574 \uc0bc\ubc14 \uc11c\ubc84\ub85c \uc804\uc1a1\ud55c\ub2e4\ub294 \uac83\uc785\ub2c8\ub2e4. \ub355\ud0dd\uc5d0 \uc0dd\uac01\uc9c0\ub3c4 \ubabb\ud55c NT_STATUS_WRONG_PASSWORD<\/tt> \uc5d0\ub7ec\ub97c \uacaa\uac8c \ub418\uc9c0\uc694. \uc5c4\uaca9\ud558\uac8c \ub9d0\ud558\uba74 ‘shared<\/tt>‘ security level\uc5d0\uc11c \uac15\uc81c\ub85c \uc0ac\uc6a9\ud558\ub3c4\ub85d \uc790\ub3d9 \uc124\uc815\ub418\ub294 Lanman \ud504\ub85c\ud1a0\ucf5c<\/a>\uc758 \uc81c\uc57d \uc0ac\ud56d\uc774\uae34 \ud558\uc9c0\ub9cc, \uc81c\uac00 \ub3c4\ub300\uccb4 \uc774\uac78 \uc65c \uc54c\uc544\uc57c \ub418\ub294 \uac74\uc9c0 \ubaa8\ub974\uaca0\ub124\uc694!<\/p>\n Ubuntu, I really appreciate you did the truncation for me behind the scene, and am sorry for the betrayal!<\/p>\n \uc6b0\ubd84\ud22c\uc5ec, \ub0a0 \uc704\ud574 \ub4a4\uc5d0\uc11c \ubab0\ub798 14\uc790\ub85c \uc554\ud638\ub97c \uc798\ub77c\uc900 \uac83 \uc815\ub9d0 \uace0\ub9c8\uc6cc, \uadf8\ub9ac\uace0 \ubc30\uc2e0\ud574\uc11c \ubbf8\uc548\ud574! \u315c\u315c<\/p>\n","protected":false},"excerpt":{"rendered":" \ud328\uc2a4\uc6cc\ub4dc \uae38\uc774\uac00 14\uc790 \uc774\uc0c1\uc77c \ub54c \uc0bc\ubc14 smbpasswd \ubb38\uc81c I recently switched to Gentoo Linux due to some random problem with dmraid in Ubuntu Linux. It was perfect at least for dmraid issues, but I realized again that it’s not really a kind Linux distribution after dealing with other various issues I’ve encountered so far. \ucd5c\uadfc\uc5d0… Continue reading