You are not logged in.

#1 2025-02-24 03:51:46

JackDesper
Member
Registered: 2025-02-24
Posts: 7

Resolved - Permissions Mismatch After Install

I was trying to figure out why some of my USB ports won't work on Arch (they work fine on Win11) and reading through a post here when I ran

sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup

The output is

warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)
warning: discord: /opt/discord/resources/app.asar (Modification time mismatch)
warning: discord: /opt/discord/resources/app.asar (Size mismatch)
warning: discord: /opt/discord/resources/app.asar (SHA256 checksum mismatch)
warning: filesystem: /root (Permissions mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: libutempter: /usr/lib/utempter/utempter (GID mismatch)
warning: libutempter: /usr/lib/utempter/utempter (Permissions mismatch)
warning: materialx: /usr/share/mime/model/materialx.xml (No such file or directory)
warning: shadow: /usr/bin/groupmems (GID mismatch)
warning: shadow: /usr/bin/groupmems (Permissions mismatch)
warning: systemd: /var/log/journal (GID mismatch)
amd-ucode: 16 total files, 1 altered file
discord: 95 total files, 1 altered file
filesystem: 124 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
libutempter: 20 total files, 1 altered file
materialx: 1193 total files, 1 altered file
shadow: 588 total files, 1 altered file
systemd: 1568 total files, 1 altered file

Unfortunately I don't know if any of these are concerning or possibly causing issues on my system.
If you can inform me as to what's going on here I would greatly appreciate it. Thanks in advance!

Last edited by JackDesper (2025-02-26 11:05:33)

Offline

#2 2025-02-24 08:16:58

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,329

Re: Resolved - Permissions Mismatch After Install

No idea about discord and materialx, but most of them are normal (sometimes file access rights gets changed w/ a post-install hook) and java is because of the entire "select java version, because 'runs everywhere' my ass" thing.

This is however probably not ok:
* warning: filesystem: /root (Permissions mismatch)

I doubt any of it is related to your usb ports.

Offline

#3 2025-02-25 03:02:17

JackDesper
Member
Registered: 2025-02-24
Posts: 7

Re: Resolved - Permissions Mismatch After Install

Okay gotcha thank you.

seth wrote:

This is however probably not ok:
* warning: filesystem: /root (Permissions mismatch)

That is the one I was most worried about. Upon further investigation, the outputs of

ls -ld /root
lsattr -d /root
getfacl /root

All show as normal, so I'm not sure where the warning comes from. ChatGPT recommends reinstalling filesystem, which feels like it might break something but I don't have any reasons to back that fear.

I'll make another ticket for the weird USB port behavior.

Offline

#4 2025-02-25 08:46:29

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,329

Re: Resolved - Permissions Mismatch After Install

All show as normal …  ChatGPT … feels like … fear

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Re-installing filesystem will hardly break, but also not fix anything.

stat /root

Offline

#5 2025-02-25 13:41:00

JackDesper
Member
Registered: 2025-02-24
Posts: 7

Re: Resolved - Permissions Mismatch After Install

seth wrote:

Please don't paraphrase

That was dumb of me

$ ls -ld /root
drwx------ 1 root root 32 Feb 23 20:18 /root
$ sudo lsattr -d /root
[sudo] password:
---------------------- /root
$ getfacl /root
getfacl: Removing leading '/' from absolute path names
# file: root
# owner: root
# group: root
user::rwx
group::---
other::---
$ stat /root
  File: /root
  Size: 32        	Blocks: 0          IO Block: 4096   directory
Device: 0,28	Inode: 351         Links: 1
Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2025-02-23 19:13:21.000000000 -0600
Modify: 2025-02-23 20:18:03.223577452 -0600
Change: 2025-02-24 20:46:47.131236460 -0600
 Birth: 2025-02-23 19:13:21.838770218 -0600

Offline

#6 2025-02-25 15:01:10

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,329

Re: Resolved - Permissions Mismatch After Install

/root defaults to 750/root:root, https://gitlab.archlinux.org/archlinux/ … heads#L110
The 700 mode doesn't constitute a problem at all, though, and is only relevant if you have non-root users in the root group.

Offline

#7 2025-02-26 01:24:14

JackDesper
Member
Registered: 2025-02-24
Posts: 7

Re: Resolved - Permissions Mismatch After Install

seth wrote:

The 700 mode doesn't constitute a problem at all, though, and is only relevant if you have non-root users in the root group.

$ getent group root
root:x:0:root

Indeed 700 mode doesn't matter on my system

To confirm diagnoses, I ran

sudo chmod 750 /root

and running the original command from my very first post yields the same output sans the root warning

$ sudo LC_ALL=C pacman -Qkk | grep -v ', 0 altered files' | grep -v backup
warning: amd-ucode: /boot/amd-ucode.img (Permissions mismatch)
warning: discord: /opt/discord/resources/app.asar (Modification time mismatch)
warning: discord: /opt/discord/resources/app.asar (Size mismatch)
warning: discord: /opt/discord/resources/app.asar (SHA256 checksum mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default (Modification time mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Symlink path mismatch)
warning: java-runtime-common: /usr/lib/jvm/default-runtime (Modification time mismatch)
warning: libutempter: /usr/lib/utempter/utempter (GID mismatch)
warning: libutempter: /usr/lib/utempter/utempter (Permissions mismatch)
warning: materialx: /usr/share/mime/model/materialx.xml (No such file or directory)
warning: shadow: /usr/bin/groupmems (GID mismatch)
warning: shadow: /usr/bin/groupmems (Permissions mismatch)
warning: systemd: /var/log/journal (GID mismatch)
amd-ucode: 16 total files, 1 altered file
discord: 95 total files, 1 altered file
java-runtime-common: 21 total files, 2 altered files
libutempter: 20 total files, 1 altered file
materialx: 1193 total files, 1 altered file
shadow: 588 total files, 1 altered file
systemd: 1568 total files, 1 altered file

Thank you very much!

Offline

#8 2025-02-26 09:11:14

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 68,329

Re: Resolved - Permissions Mismatch After Install

\o/
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB