You are not logged in.

#1 2025-02-27 15:29:19

Nadgob
Member
Registered: 2025-02-27
Posts: 4

[SOLVED] Help!!! I lost permissions to / :(

I was experimenting with commands in terminal and I was curious what will happen after command

sudo chmod o-x /

I lost permissions to everything... I rebooted pc and after grub screen there are "failed to start" errors. Can I return permissions?

Last edited by Nadgob (2025-02-28 05:32:06)

Offline

#2 2025-02-27 16:30:42

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,173

Re: [SOLVED] Help!!! I lost permissions to / :(

... boot a live disk, mount the root partition, chmod it correctly again.

If you're messing around with commands that you try to understand do not apply them to a global location and most definitely do not sudo them. And maybe instead of randoming with commands read a bit of the underlying theory of what they are doing: https://wiki.archlinux.org/title/File_p … attributes

Last edited by V1del (2025-02-27 16:32:42)

Offline

#3 2025-02-27 16:35:09

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,489
Website

Re: [SOLVED] Help!!! I lost permissions to / :(

Try booting to the rescue target ( https://wiki.archlinux.org/title/Systemd#Targets ), or changing init to /bin/sh ( https://wiki.archlinux.org/title/Kernel … meter_list ). If all else fails, boot a liveCD and fix it there.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2025-02-28 05:27:25

Nadgob
Member
Registered: 2025-02-27
Posts: 4

Re: [SOLVED] Help!!! I lost permissions to / :(

WorMzy wrote:

Try ... changing init to /bin/sh ( https://wiki.archlinux.org/title/Kernel … meter_list ).

Thank you, this helped!

Offline

Board footer

Powered by FluxBB