Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Short password? "SOLVED"

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
Keithmj
Posts: 2
Joined: 2021-10-15 15:07

Short password? "SOLVED"

#1 Post by Keithmj »

I do not have a problem but just a question.
I there a way to setup a user using a short password? All the user passwords have to be at least 6 characters long, I want to have one only three or four characters long, can this be done of is it something that I have to live with? I don't want to try and change something I can't. Thanks.
Last edited by Keithmj on 2021-11-07 00:13, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 2816
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 68 times
Been thanked: 382 times

Re: Short password?

#2 Post by Aki »

Hello,

What you are trying to do is, of course, very insecure.

See par. 4.11.2 at the following url:
https://www.debian.org/doc/manuals/securing-debian-manual/ch04s11.en.html#auth-pam
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Keithmj
Posts: 2
Joined: 2021-10-15 15:07

Re: Short password? "SOLVED"

#3 Post by Keithmj »

Thanks Aki, it is only for my wife and myself and we didn't need the long passwords on our Destro.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Short password? "SOLVED"

#4 Post by sunrat »

Long passwords with non-alphabetical components are of course more secure. I admit though to using a super-secret 4 character password, non dictionary, but I'm behind a router with firewall active on maximum settings and using NAT. Router itself has a long admin password.
I think the passwd command doesn't sanitise so you can change to a short password using it.
Of course XKCD has a good take on this :D :
Image
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Short password? "SOLVED"

#5 Post by CwF »

with systemd autologin and a fully configured polkit I never type in a password. Well, almost, there's that one to decrypt the disk, and any time the operation involves a eth port.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: Short password? "SOLVED"

#6 Post by sunrat »

CwF wrote: 2021-11-07 04:02 with systemd autologin and a fully configured polkit I never type in a password. Well, almost, there's that one to decrypt the disk, and any time the operation involves a eth port.
Do you have a link to how to fully configure polkit?
I have one polkit tweak to allow Dolphin to mount all local drives without password, but otherwise use the old-fashioned way to escalate privileges.
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

CwF
Global Moderator
Global Moderator
Posts: 2625
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 41 times
Been thanked: 190 times

Re: Short password? "SOLVED"

#7 Post by CwF »

sunrat wrote: 2021-11-07 04:56 Do you have a link to how to fully configure polkit?
I do not.
First check what can be configured

Code: Select all

$ pkaction -l
whatever you used for dolphin, will work on any other, will be on this list...
Then add whatever you'd like to the pkla file you made with root.

The list keeps growing. Some older things need updated with a pkaction, so limited.

Post Reply