Jump to content

new user creation and password complexity


Recommended Posts

On 7/21/2018 at 12:03 AM, hchenji said:

And how do I get it to accept simple passwords?

reasons why simple passwords might be a bad idea:

by allowing simple passwords or default passwords active (e.g. 1234 is one of the 'dumbest' you can imagine when it's set permanently).

 

from armbian.com:

Quote

Secure

Images are made fully automatised from sources. Releases are PGP signed and code is regularly inspected by community.

 

You can do whatever you want to do here: https://github.com/armbian/build/blob/master/config/templates/customize-image.sh.template

but there won't be any official images with disabled/lowered security. 

Link to comment
Share on other sites

Using customize-image.sh to create an image.  Add to or replace script:

#!/bin/bash

# remove new user prompt
rm /root/.not_logged_in_yet

# change to weak password
echo "root:qwerty" | chpasswd

If you are trying to do this from official images.  After writing image to sdcard, mount, chroot, and run above.  Or mount, remove .not_logged_in_yet, and manually create new password by using mkpasswd and insert into /etc/shadow.  For more info, check man pages for shadow, mkpasswd.

 

Edit: For official images; mount sdcard, create /boot/armbian_first_run.txt and copy code into the file.  It should exec them on first run.

Edited by lrrr
Additional info
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines