forked from Tony91590/xqrepack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent root password modification during reset to default and the in…
…itialize setup wizard
- Loading branch information
1 parent
cbf2e9f
commit b3351bc
Showing
2 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- a/etc/uci-defaults/10_migrate-shadow 2020-09-28 05:05:55.000000000 -0400 | ||
+++ b/etc/uci-defaults/10_migrate-shadow 2022-12-25 17:17:00.681549715 -0500 | ||
@@ -6,7 +6,6 @@ | ||
if [ -n "${ppwd#[\!x]}" ] && [ -z "${spwd#[\!x]}" ]; then | ||
logger -t migrate-shadow "Moving root password hash into shadow database" | ||
sed -i -e "s:^root\:[^\:]*\::root\:x\::" /etc/passwd | ||
- sed -i -e "s:^root\:[^\:]*\::root\:$ppwd\::" /etc/shadow | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters