kaos
Posts: 108
Joined: Mon Mar 26, 2012 8:14 pm

Setting password policy (Debian)

Wed Jun 06, 2012 9:27 pm

How do you relax the default password policy under Debian somewhat? I just activated SSH, and thought I had better change the default password. A little bit of googling told me that this could be done with the passwd command (can you tell I'm a Linux newbie :D ). Unfortunately all my passwords were rejected as "too similar" to the old password. Now, this Raspi sits behind a firewall that doesn´t allow ssh passthrough, and furthermore isn't keeping any national secrets, and I want to be able to actually remember the password myself, so how do I set about relaxing the rules?

--
Thx, Kári.

User avatar
croston
Posts: 700
Joined: Sat Nov 26, 2011 12:33 pm
Location: Blackpool
Contact: Website

Re: Setting password policy (Debian)

Wed Jun 06, 2012 9:44 pm

If you change the password as root (superuser) the password strength checks are ignored. In other words:

Code: Select all

$ sudo su -
...
# passwd pi
...
# exit
$ 

kaos
Posts: 108
Joined: Mon Mar 26, 2012 8:14 pm

Re: Setting password policy (Debian)

Wed Jun 06, 2012 10:14 pm

That worked!
Thank you very much.

--
Kári.

Return to “Beginners”