How to change the minimum password length when changing from default passwords
#1
Hey, guys...I'm trying to change my default passwords for default user and root...passwd isn't happy with my password length, yet it's longer than the default 4-character password...what gives? How can I change this requirement to allow for a shorter new password? Also, a related question...mobian is the default user...can I make a new user and have a multi-user system, or is mobian pretty much the only user apart from root that will work with this setup? on the top bar of phosh there's a grayed-out option to logout...wondering if that can be implemented?
Thanks in advance!
#2
There is two things you can do regarding the password:
Code:
sudo passwd mobian
sudo passwd root
to circumvent the password policy. See the mobian wiki

Or you could change the password policy by editing '/etc/pam.d/common-password'  See this issue.

To change the user name you can either build an image yourself using this debos recipe and supplying '-u <USERNAME>' to the build script.

Alternatively you could probably use Jumpdrive, mount the root partition and then rename /home/mobian to /home/user and also update the /etc/passwd and /etc/shadow files. However do this at your own risk, since I have never tried it. Not sure if this breaks the auto-login of phosh (maybe you need to do some changes there as well).
#3
(07-18-2020, 11:04 AM)devrtz Wrote: Alternatively you could probably use Jumpdrive, mount the root partition and then rename /home/mobian to /home/user and also update the /etc/passwd and /etc/shadow files. However do this at your own risk, since I have never tried it. Not sure if this breaks the auto-login of phosh (maybe you need to do some changes there as well).

I did this and it worked. Phosh uses the uid to determine who to login. I don't remember whether changing shadow and passwd was enough. You'll probably need to change /etc/group as well. Just grep for mobian in etc.
#4
I got it! Thanks. Yeah, user error on that one...I forgot to sudo for mobian and that's what threw up that error.


Possibly Related Threads…
Thread Author Replies Views Last Post
  4G data on default startup / boot dcinoz 1 1,237 04-29-2023, 11:24 PM
Last Post: dcinoz
  Bogus default gateway keeps appearing Zebulon Walton 7 3,405 02-25-2023, 09:48 PM
Last Post: Zebulon Walton
  Any fix for bluetooth crash when entering pairing password? kk22 0 1,121 06-18-2022, 07:51 PM
Last Post: kk22
  Change GUI from Phost to Gnome (or anything else) johnpine 0 1,106 05-27-2022, 06:52 AM
Last Post: johnpine
  User login change usagi 11 7,599 05-13-2022, 01:16 AM
Last Post: johnpine
  Does mobian use a root account and password? rp3 6 9,303 04-04-2022, 07:26 PM
Last Post: parry
  Changing Desktop Environments? Ferriah 14 11,263 01-20-2022, 06:58 AM
Last Post: grump_fiddle_reinstall
  Changing the ringtone? Hiraghm 9 18,154 10-10-2021, 09:48 AM
Last Post: gab
  Change default program for a file type 3x5co 1 2,116 09-01-2021, 05:26 PM
Last Post: Zebulon Walton
  Default SMS app send button off screen in vertical orientation motox6 0 1,459 05-22-2021, 02:55 PM
Last Post: motox6

Forum Jump:


Users browsing this thread: 3 Guest(s)