Score:0

sudo takes long time to prompt password

cn flag

I am facing little issue in sudo command. Whatever I try with sudo command it takes huge time to prompt password.

can anyone please tell me what might be the case. commands like

sudo apt-get update
sudo systemctl start mongod
sudo systemctl start redis
ChanganAuto avatar
us flag
Define "huge time".
abinas patra avatar
cn flag
password prompt used to come in 1ms, now it's taking approximately 10 seconds. I don't know the exact time, it's taking.
David avatar
cn flag
LOL 10 secs is a huge time.
abinas patra avatar
cn flag
haha, but is there any way to know this, why it's taking little time.
hr flag
It *may* be related to hostname resolution - see for example [Terminal command with sudo takes a long time](https://askubuntu.com/questions/322514/terminal-command-with-sudo-takes-a-long-time). Have you made any changes to hostname / hosts / nsswitch?
abinas patra avatar
cn flag
no, I haven't done any change.
raj avatar
cn flag
raj
@abinaspatra Maybe your DNS server(s) did stop working?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.