Find out password incorrect in nmcli

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I use bash script for connect to wireless network with nmcli .
I can do it
but when i want to connect to network with wrong password
the output of command does not return error that say this
and i can not find out why user can not connect to network ( hardware problem or incorrect password or anything others



this is my bash command



nmcli dev wifi con [mssid] password [password]


how should i do it ?







share|improve this question






















  • Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
    – Jesse_b
    Oct 15 '17 at 1:44











  • yes i edited the post and attached my bash code
    – mehran
    Oct 15 '17 at 1:50






  • 1




    check /var/log/syslog
    – Jesse_b
    Oct 15 '17 at 1:58










  • nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
    – mehran
    Oct 15 '17 at 2:07










  • Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
    – Jesse_b
    Oct 15 '17 at 2:13














up vote
0
down vote

favorite












I use bash script for connect to wireless network with nmcli .
I can do it
but when i want to connect to network with wrong password
the output of command does not return error that say this
and i can not find out why user can not connect to network ( hardware problem or incorrect password or anything others



this is my bash command



nmcli dev wifi con [mssid] password [password]


how should i do it ?







share|improve this question






















  • Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
    – Jesse_b
    Oct 15 '17 at 1:44











  • yes i edited the post and attached my bash code
    – mehran
    Oct 15 '17 at 1:50






  • 1




    check /var/log/syslog
    – Jesse_b
    Oct 15 '17 at 1:58










  • nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
    – mehran
    Oct 15 '17 at 2:07










  • Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
    – Jesse_b
    Oct 15 '17 at 2:13












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I use bash script for connect to wireless network with nmcli .
I can do it
but when i want to connect to network with wrong password
the output of command does not return error that say this
and i can not find out why user can not connect to network ( hardware problem or incorrect password or anything others



this is my bash command



nmcli dev wifi con [mssid] password [password]


how should i do it ?







share|improve this question














I use bash script for connect to wireless network with nmcli .
I can do it
but when i want to connect to network with wrong password
the output of command does not return error that say this
and i can not find out why user can not connect to network ( hardware problem or incorrect password or anything others



this is my bash command



nmcli dev wifi con [mssid] password [password]


how should i do it ?









share|improve this question













share|improve this question




share|improve this question








edited Oct 15 '17 at 1:49

























asked Oct 15 '17 at 1:42









mehran

11




11











  • Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
    – Jesse_b
    Oct 15 '17 at 1:44











  • yes i edited the post and attached my bash code
    – mehran
    Oct 15 '17 at 1:50






  • 1




    check /var/log/syslog
    – Jesse_b
    Oct 15 '17 at 1:58










  • nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
    – mehran
    Oct 15 '17 at 2:07










  • Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
    – Jesse_b
    Oct 15 '17 at 2:13
















  • Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
    – Jesse_b
    Oct 15 '17 at 1:44











  • yes i edited the post and attached my bash code
    – mehran
    Oct 15 '17 at 1:50






  • 1




    check /var/log/syslog
    – Jesse_b
    Oct 15 '17 at 1:58










  • nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
    – mehran
    Oct 15 '17 at 2:07










  • Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
    – Jesse_b
    Oct 15 '17 at 2:13















Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
– Jesse_b
Oct 15 '17 at 1:44





Can you edit your question with the script or the relevant parts if it's long and put them in a code block (highlight the code and press ctrl+k)?
– Jesse_b
Oct 15 '17 at 1:44













yes i edited the post and attached my bash code
– mehran
Oct 15 '17 at 1:50




yes i edited the post and attached my bash code
– mehran
Oct 15 '17 at 1:50




1




1




check /var/log/syslog
– Jesse_b
Oct 15 '17 at 1:58




check /var/log/syslog
– Jesse_b
Oct 15 '17 at 1:58












nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
– mehran
Oct 15 '17 at 2:07




nmcli return this message "Error: Failed to add/activate new connection: Unknown error" and does not add anything in syslog
– mehran
Oct 15 '17 at 2:07












Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
– Jesse_b
Oct 15 '17 at 2:13




Check this article to help turn on debugging: docs.ubuntu.com/core/en/stacks/network/network-manager/docs/…
– Jesse_b
Oct 15 '17 at 2:13















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398184%2ffind-out-password-incorrect-in-nmcli%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f398184%2ffind-out-password-incorrect-in-nmcli%23new-answer', 'question_page');

);

Post as a guest













































































kWMUhZzcw1ZkfwDAdI4F12w,w05FK9bQKoFk41lN W8Ze 3XIoVFtdCeCg3khE6faVzXe 7uGY8VztUpI mkZm7av7c2UZDHDJweeCq
swF0Ja8q mmtEobg,06eHKR0Q2 3,JNGa weGBG8SE JestDhECnXlhMDV6R7Dx8z9 Ga6,908ZC1t FvO3Rvra 5aSe9SB jiku

Popular posts from this blog

How to check contact read email or not when send email to Individual?

How many registers does an x86_64 CPU actually have?

Displaying single band from multi-band raster using QGIS