Clicking BTRFS Assistant results in....nothing?

Yep, that thing is for bash.
It's quite cryptic to read, basically it looks for permissions differ ... in pacman.log, and uses sed to generate chmod commands into fixem from those lines.
Then fixem is made executable, and then executed.
I'm not really sure what the pacman log format is and if the thing is correct, I think so but it seems to me that the log may not include all of the "broken" files. Then again I don't know pacman too well.


But I fear there's a bigger problem: does /usr/bin/sudo still have the setuid? Likely not...
If not, I think you could boot from install media and chmod it from there (after mounting the HD partition if necessary). Then reboot normally.
It would be sudo chmod 4755 /mountpoint/usr/bin/sudo -- you see, it takes a functioning sudo to do that.

Then, hopefully you have pacutils installed (for the paccheck command), else hopefully you can install it normally with pacman -S pacutils, else we'll see what to do about it.


OK, now let's see how to fix.
Note: I have removed the setuid from my /usr/bin/cdrecord for testing.
Also notice that sudo is needed to check some of the system directories (but not for /usr/bin/).

fish❯ ll /usr/bin/cdrecord
.rwx--x--x@ 574k root 25 lug  2021  /usr/bin/cdrecord # should be .rws… not .rwx…
fish❯ sudo paccheck --file-properties --quiet | grep 'permission mismatch'
cdrtools: '/usr/bin/cdrecord' permission mismatch (expected 4711)

That's all we need: the full pathname and the expected permissions.

fish❯ sudo chmod 4711 /usr/bin/cdrecord
fish❯ ll /usr/bin/cdrecord
.rws--x--x@ 574k root 25 lug  2021  /usr/bin/cdrecord # fixed!

That number is the octal representation of the file permissions, and can be passed directly to chmod.
This is what the "fixem" thing does with that cryptic sed command, extract the permissions and the path and stick "chmod" in front.


Backup in case of full reinstallation: /etc, /home, any other thing you have changed outside those two (let's say, if you put wallpapers in /usr/share), the list of packages you installed manually.
Also write down the kernel parameters if you had to change them to make something work.
Maybe something else I forgot?

I advise using rsync for the backup (careful with the trailing slashes). This is my backup script:

#!/bin/bash
excl=('*[Cc]ache*' old-isos) # list of home directories to exclude, just an example
     rsync -aAXv "${excl[@]/#/--exclude=}" /home/username /.mnt/data/backup/
sudo rsync -aAXv                                     /etc /.mnt/data/backup/

Of course you will need to adjust the mountpoint of the backup disk and the list of excluded folders.
(old-isos has large .iso files I don't need to backup, the cache glob is because of vscode else it can be .cache, probably you don't need the Firedragon crashrecovery stuff either)
The "${excl[@]/#/--exclude=}" is bash variable expansion black magick to turn the list into --exclude=dir options to rsync.


Disclaimer: I'm not an expert, don't trust me and double check.

1 Like

@meanruse Thanks for your testing and assistance. Unfortunately, I decided to go down the reinstall route. Everything seemed to be fine........until I rebooted. I kept a log of what I did (not every command verbatim, mind you, but a record of what I did). The only mistake I'm aware of was restoring my /home folder before reinstalling all my software. Should have installed all software first....

So, when I rebooted the system, I'm now getting this issue where I can't login under the user I created during install - I enter my PW and the system hangs. I notice my drive light comes on every few seconds, but nothing happens. If I power-cycle the PC, when I get back to the boot screen I can login under root, but if I try my regular login/PW, it hangs. I've researched this on my laptop and it appears to be something that other users have experienced over the past few years.

I did notice that when I did the install this time, it gave me options I don't remember seeing the last time (it auto-updated the system, and gave me options to install a plethora of apps, choose a kernel, etc.). It was the same ISO file I downloaded back on the 19th for my first install.

So, given that there is the possibility that my screw-up with the /home folder could be an issue (seems logical to me anyway), I'm inclined to just wipe the drive and reinstall again. I can pretty much recover any important data from my Windows drive and start from scratch instead of trying to worry about saving my /home folder. Unless of course, someone has a real good idea what is wrong and it's easily fixable. I have no idea what to do other than reinstall.

Results of

garuda-inxi
System:
Kernel: 6.0.5-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=33bab7e2-354b-4a41-90a0-a035436b4688 rw rootflags=subvol=@
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
resume=UUID=d50fe1fb-623e-4546-b2a6-59b370feff67 loglevel=3
Desktop: KDE Plasma v: 5.26.2 tk: Qt v: 5.15.6 info: latte-dock
wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
Type: Desktop Mobo: ASUSTeK model: ROG STRIX B450-F GAMING v: Rev 1.xx
serial: <filter> UEFI: American Megatrends v: 4901 date: 07/25/2022
Battery:
Device-1: hidpp_battery_0 model: Logitech G700s serial: <filter> charge: 55%
(should be ignored) rechargeable: yes status: discharging
CPU:
Info: model: AMD Ryzen 5 3600 socket: AM4 bits: 64 type: MT MCP arch: Zen 2
gen: 3 level: v3 note: check built: 2020-22 process: TSMC n7 (7nm)
family: 0x17 (23) model-id: 0x71 (113) stepping: 0 microcode: 0x8701021
Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB
L3: 32 MiB desc: 2x16 MiB
Speed (MHz): avg: 3600 min/max: 2200/4208 boost: enabled
base/boost: 3600/4200 scaling: driver: acpi-cpufreq governor: performance
volts: 1.1 V ext-clock: 100 MHz cores: 1: 3600 2: 3600 3: 3600 4: 3600
5: 3600 6: 3600 7: 3600 8: 3600 9: 3600 10: 3600 11: 3600 12: 3600
bogomips: 86403
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities:
Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: mmio_stale_data status: Not affected
Type: retbleed mitigation: untrained return thunk; SMT enabled with STIBP
protection
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
sanitization
Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP:
always-on, RSB filling, PBRSB-eIBRS: Not affected
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GA104 [GeForce RTX 3070 Ti] vendor: eVga.com.
driver: nvidia v: 520.56.06 alternate: nouveau,nvidia_drm non-free: 515.xx+
status: current (as of 2022-10) arch: Ampere code: GAxxx process: TSMC n7
(7nm) built: 2020-22 pcie: gen: 2 speed: 5 GT/s lanes: 16 link-max:
gen: 4 speed: 16 GT/s bus-ID: 07:00.0 chip-ID: 10de:2482 class-ID: 0300
Device-2: Logitech C920 HD Pro Webcam type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 5-2:2 chip-ID: 046d:0892
class-ID: 0102 serial: <filter>
Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.4
compositor: kwin_x11 driver: X: loaded: nvidia unloaded: modesetting
alternate: fbdev,nouveau,nv,vesa gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 5360x1440 s-dpi: 109 s-size: 1249x342mm (49.17x13.46")
s-diag: 1295mm (50.98")
Monitor-1: DP-4 pos: primary,left res: 3440x1440 hz: 60 dpi: 109
size: 800x335mm (31.5x13.19") diag: 867mm (34.15") modes: N/A
Monitor-2: HDMI-0 pos: right res: 1920x1080 hz: 60 dpi: 96
size: 509x286mm (20.04x11.26") diag: 584mm (22.99") modes: N/A
OpenGL: renderer: NVIDIA GeForce RTX 3070 Ti/PCIe/SSE2 v: 4.6.0 NVIDIA
520.56.06 direct render: Yes
Audio:
Device-1: NVIDIA GA104 High Definition Audio vendor: eVga.com.
driver: snd_hda_intel bus-ID: 5-2:2 v: kernel pcie: chip-ID: 046d:0892
gen: 3 class-ID: 0102 serial: <filter> speed: 8 GT/s lanes: 16 link-max:
gen: 4 speed: 16 GT/s bus-ID: 07:00.1 chip-ID: 10de:228b class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
bus-ID: 09:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Logitech C920 HD Pro Webcam type: USB
driver: snd-usb-audio,uvcvideo
Sound API: ALSA v: k6.0.5-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.59 running: yes
Network:
Device-1: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: kernel
pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 04:00.0
chip-ID: 8086:1539 class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
Local Storage: total: 13.19 TiB used: 176.9 GiB (1.3%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
model: WDBRPG0010BNC-WRSN size: 931.51 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: 111130WD temp: 39.9 C scheme: GPT
SMART: yes health: PASSED on: 275d 7h cycles: 223 read-units: 1,021,579
[523 GB] written-units: 1,955,950 [1.00 TB]
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 500GB
family: based SSDs size: 465.76 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 1B6Q temp: 29 C scheme: MBR
SMART: yes state: enabled health: PASSED on: 2y 116d 23h cycles: 833
written: 3.12 TiB
ID-3: /dev/sdb maj-min: 8:16 vendor: Toshiba model: HDWE140
family: Toshiba X300 size: 3.64 TiB block-size: physical: 4096 B
logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: HDD rpm: 7200
serial: <filter> rev: FP1R temp: 39 C scheme: GPT
SMART: yes state: enabled health: PASSED on: 334d 13h cycles: 279
ID-4: /dev/sdc maj-min: 8:32 vendor: Toshiba model: MD04ACA500
size: 4.55 TiB block-size: physical: 4096 B logical: 512 B sata: 3.0
speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: FP2A temp: 45 C
scheme: GPT
SMART: yes state: enabled health: PASSED on: 3y 71d 10h cycles: 1732
ID-5: /dev/sdd maj-min: 8:48 type: USB vendor: Toshiba model: External
USB 3.0 drive model: MD04ACA400 size: 3.64 TiB block-size:
physical: 4096 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: HDD
rpm: 7200 serial: <filter> drive serial: <filter> rev: 5438
drive rev: FP2A temp: 45 C scheme: GPT
SMART: yes state: enabled health: PASSED on: 161d 23h cycles: 20615
Partition:
ID-1: / raw-size: 896.83 GiB size: 896.83 GiB (100.00%) used: 176.9 GiB
(19.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 608 KiB
(0.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1 maj-min: 259:1
ID-3: /home raw-size: 896.83 GiB size: 896.83 GiB (100.00%) used: 176.9
GiB (19.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-4: /var/log raw-size: 896.83 GiB size: 896.83 GiB (100.00%) used: 176.9
GiB (19.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-5: /var/tmp raw-size: 896.83 GiB size: 896.83 GiB (100.00%) used: 176.9
GiB (19.7%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.26 GiB used: 2 MiB (0.0%) priority: 100
dev: /dev/zram0
ID-2: swap-2 type: partition size: 34.39 GiB used: 0 KiB (0.0%)
priority: -2 dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
System Temperatures: cpu: 48.0 C mobo: 30.0 C gpu: nvidia temp: 39 C
Fan Speeds (RPM): cpu: 1151 case-1: 904 case-2: 0 case-3: 1061
gpu: nvidia fan: 0%
Power: 12v: 9.87 5v: N/A 3.3v: N/A vbat: 3.23
Info:
Processes: 319 Uptime: 1m wakeups: 2 Memory: 31.26 GiB used: 3 GiB (9.6%)
Init: systemd v: 251 default: graphical tool: systemctl Compilers:
gcc: 12.2.0 clang: 14.0.6 Packages: pm: pacman pkgs: 2023 libs: 551
tools: octopi,pamac,paru Shell: fish v: 3.5.1 default: Bash v: 5.1.16
running-in: konsole inxi: 3.3.22
Garuda (2.6.9-1):
System install date:     2022-10-29
Last full system update: 2022-10-29
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:

It sounds like the permissions on your home directory are wrong. That should be safe to fix.

Thanks. I'm not certain exactly how to fix that....

EDIT: So I checked using Dolphin, and this is what I get:

I went ahead and changed it from root to mx372, for both the owner and group. Also clicked the check box. Logged out of root, logged in as mx372 - seems fixed,

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.