Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation/guides/chroot: fix ROOTFS method permissions #811

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

swomf
Copy link

@swomf swomf commented Sep 13, 2024

The tar command used in the "ROOTFS method" heading loses important permissions data.

For example, unix_chkpwd (a program that uses the setUID bit to allow some lockscreen programs to talk to PAM) may have missing setUID permissions, leading to user lockout.

Using only tar xvf

# ls -l /mnt/usr/bin/unix_chkpwd
-rwxr-xr-x 1 root root 38880 Dec 26  2023 /mnt/usr/bin/unix_chkpwd

Using Gentoo-style tar extraction

# ls -l /mnt/usr/bin/unix_chkpwd
-rwsr-xr-x 1 root root 38880 Dec 26  2023 /mnt/usr/bin/unix_chkpwd

This commit updates the documentation's tar command to match how Gentoo unpacks their tarballs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant