-1

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

Aaron88
  • 1
  • 2
  • Please provide OS/product & especially release details. – guiverc Oct 08 '22 at 02:47
  • 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) – Nmath Oct 08 '22 at 03:27
  • Unless you are _root_ `sudo` always should ask for a password. – mook765 Oct 08 '22 at 05:05

1 Answers1

4

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:

user535733
  • 58,040
  • 10
  • 106
  • 136
  • 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. – Aaron88 Oct 08 '22 at 15:34
  • Oh, this is a Debian system. Those are off-topic. Big differences in precisely the areas you are asking about. – user535733 Oct 08 '22 at 15:35