mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
Merge branch 'thingos-next' into dev
This commit is contained in:
commit
13cf9cc3bd
@ -23,8 +23,8 @@ rm -f /data/etc/shadow-
|
||||
|
||||
# set root and admin passwords (admin is just an alias for root)
|
||||
|
||||
echo -en "$PASSWORD\n$PASSWORD\n" | passwd &>/dev/null # root
|
||||
echo -en "$PASSWORD\n$PASSWORD\n" | passwd admin &>/dev/null # admin
|
||||
echo -en "$PASSWORD\n$PASSWORD\n" | passwd -a md5 &>/dev/null # root
|
||||
echo -en "$PASSWORD\n$PASSWORD\n" | passwd -a md5 admin &>/dev/null # admin
|
||||
|
||||
sed -r -i 's/root:([^:]+):[[:digit:]]+:/root:\1::/' /data/etc/shadow # removes pwd expiration
|
||||
sed -r -i 's/admin:([^:]+):[[:digit:]]+:/admin:\1::/' /data/etc/shadow # removes pwd expiration
|
||||
|
Loading…
x
Reference in New Issue
Block a user