Find out password incorrect in nmcli

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













































































Popular posts from this blog

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

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay