[main] Doc issue in file modules/ROOT/pages/reset-root-password.adoc #790
Labels
No labels
bug
Closed As
complete
Closed As
duplicate
Closed As
insufficient data
Closed As
moved
Closed As
not possible
Closed As
out of scope
Closed As
stale
good first issue
help wanted
improvement
needs changes
needs committer review
needs info
new change
Priority
awaiting triage
Priority
needs review
Priority
next meeting
Priority
waiting on assignee
Priority
waiting on external
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Docs/quick-docs#790
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The instructions for changing the password (root or otherwise) on the console no longer work in Fedora 41, and probably in earlier version of Fedora.
After you have booted into maintenance and changed the password using
passwd
(which works, as can be seen by dumpin/etc/shadow
), you are told to reset the selinux permissions, i.e. perform a relabeling.However a
touch /.autorelabel
(or else issuing the commandfixfiles onboot,
whixh apparently does the same thing) is not enough to start relabling!We find that after boot, "logging in" still does not work. Not because of a bad password but because of SELinux. There are AVC warnings in
/var/log/message
(unix_chkpwd
is not allowed to access theshadow
file, apparently) and the file/.autorelabel
is still present. And indeed, no messages concerning relabeling were seen during the boot process.Apparently, the relabeling itself is interdicted by SELinux. See this discussion:
FEDORA 38 SELINUX .autorelabel without function
See also:
Red Hat Docs: Changing SELinux states and modes
where we read:
The latter bug report has the title ".autorelabel does not work anymore in RHEL8.4 if a file required by systemd is unlabelled (/etc/localtime)"
Indeed, to make the process successful, one has to boot with a modified kernel line with an additional
enforcing=0
.This will show relabeling progress on boot.
And then the modified password or passwords allow you to log in. Also, the file
/.autorelabel
is gone and SELinux is in enforcing mode (as shown bysestatus
)Metadata Update from @pbokoc:
Metadata Update from @pbokoc:
Fixed in #801.
Metadata Update from @pbokoc: