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
  Changing the ringtone? Hiraghm 9 9,344 10-10-2021, 09:48 AM
Last Post: gab
  Change default program for a file type 3x5co 1 210 09-01-2021, 05:26 PM
Last Post: Zebulon Walton
  Default SMS app send button off screen in vertical orientation motox6 0 395 05-22-2021, 02:55 PM
Last Post: motox6
  Change locking of Ctrl modifier? vandys 1 528 05-08-2021, 02:46 AM
Last Post: MtnSk8
  Does mobian use a root account and password? rp3 4 2,324 01-10-2021, 05:35 AM
Last Post: ryo
  Make 'terminal' on-screen keyboard the default 3x5co 0 734 12-27-2020, 05:11 PM
Last Post: 3x5co
  ssh not enabled, by default? RodMyers 6 2,374 10-02-2020, 07:35 AM
Last Post: LinAdmin2
  sudo / lock screen password keeps resetting to default ergo owl 6 2,943 09-04-2020, 06:07 AM
Last Post: ergo owl
  wifi comes and goes and prompts for password often motox6 2 1,576 08-05-2020, 11:39 PM
Last Post: Boern
  Default Theme wasgurd 4 2,637 06-26-2020, 06:28 PM
Last Post: wasgurd

Forum Jump:


Users browsing this thread: 1 Guest(s)