Score:-1

sudo asks for password despite not setting one

kg flag

Created a user with no password.

sudo adduser --disabled-password cowrie

I'm currently under this virtual env 'cowrie' but when trying to execute the following command it asks me for the password:

sudo apt-get install authbind

Even though I just hit enter after 3 attempts, it says the password is wrong. This user 'cowrie' doesn't have any password set.screenshot attached

guiverc avatar
cn flag
Please provide OS/product & especially release details.
Nmath avatar
ng flag
Does this answer your question? [How do I reset a lost administrative password?](https://askubuntu.com/questions/24006/how-do-i-reset-a-lost-administrative-password)
mook765 avatar
cn flag
Unless you are _root_ `sudo` always should ask for a password.
Score:4
cn flag

The admin account needs a password to work properly. Go into Recovery Mode and set a password

Setting up passwordless login properly is easy, and has nothing to do with whether or not the account has a password.

HowTos:

Aaron88 avatar
kg flag
When I re login into my debian machine as root and then switch to user 'cowrie' using 'sudo su - cowrie', it doesn't ask me for a password. It appears I just needed to run this command 'sudo apt-get install authbind' under root user not under 'cowrie' virtual environment.
user535733 avatar
cn flag
Oh, this is a Debian system. Those are off-topic. Big differences in precisely the areas you are asking about.
I sit in a Tesla and translated this thread with Ai:

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.