Skip to content

BAD PASSWORD error when using database username as Linux system user password #74

@Eprince-hub

Description

@Eprince-hub

1️⃣ What happened that was unexpected
Creating Linux system user for postgres throws an error

BAD PASSWORD: The password contains the user name in some form

2️⃣ What were your expectations
Create a system user for postgres without issue

3️⃣ Your guess of what the problem is
Linux expects that the password for the system is unique and would throw an error otherwise

4️⃣ A list of things you have tried to solve it
Check the learning platform's cheatsheets for postgres
Creating the user with a password the same password I used in the database as suggested by the cheatsheet throws the error below

sudo adduser next_js_e_commerce_store;
Adding user `next_js_e_commerce_store' ...
Adding new group `next_js_e_commerce_store' (1002) ...
Adding new user `next_js_e_commerce_store' (1001) with group `next_js_e_commerce_store' ...
Creating home directory `/home/next_js_e_commerce_store' ...
Copying files from `/etc/skel' ...
New password: 
BAD PASSWORD: The password contains the user name in some form
Retype new password: 

After using an entirely new unique password, the system asked the questions below, which I only pressed enter on all, the system user was created, and I can continue with postgres

Changing the user information for next_js_e_commerce_store
Enter the new value, or press ENTER for the default
	Full Name []: 
	Room Number []: 
	Work Phone []: 
	Home Phone []: 
	Other []: 

Todo

  • Research a method for creating Linux system user without the above questions
  • Update system setup guide + cheatsheet for Linux users

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions