Score:0

ubuntu sudo su takes long time

mw flag

I have seen many questions related to sudo taking long time. I solved it by running script as root:

echo myserver > /etc/hostname
echo 127.0.0.1 myserver > /etc/hosts
hostname myserver

After recconecting SSH session, sudo commands execute as usual. Except sudo su.It takes about 7-8 seconds. It is fresh Ubuntu 18 EC2 instance running in VPC in private subnet. When I create instances in other regions, I do not experience sudo delay at all. All regions should be identicall since CloudFormation template is used to create it. Why only sudo su takes long and how to solve it?

Edit

chef-server-ctl reconfigure fails when opening service socket to rabbitmq. I installed Chef server in diffferent VPCs in different regions, only CapeTown makes me problem. Every infra is created by CF template. In every other region chef installation works fine, except af-south-1 and here sudo su also takes longer. IMHO it relates to internal networking but I do not understand why and how.

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.