Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Debian 11 Bullseye HELP!

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
hawghaven
Posts: 13
Joined: 2022-11-21 17:16
Has thanked: 1 time

[Solved] Debian 11 Bullseye HELP!

#1 Post by hawghaven »

Hi All...
I made a big mistake this morning in Debian 11.
I went to run "freshclam" from the command line, when it failed and told me it needed permission to write to /var/lib/clamav. to check my permissions.
I went to that directory and used this command:
sudo chmod -vR 660 /
from the /var/lib/clamav directory.
Well, it started going crazy on a lot of files, I knew something was wrong and quickly gave the "CTRL-C command, then my screen went blank and I can not login anymore.
I think I broke it. Is there any HELP out there or am I just out of luck???
I have a very sick feeling about this. Any HELP would be great.

Thanks
P.S. I did not have Timeshift running.
Last edited by hawghaven on 2022-11-22 12:11, edited 1 time in total.

arochester
Emeritus
Emeritus
Posts: 2435
Joined: 2010-12-07 19:55
Has thanked: 14 times
Been thanked: 54 times

Re: Debian 11 Bullseye HELP!

#2 Post by arochester »

When it said you need permission to write it meant that you should become root by using

Code: Select all

su - 
or

Code: Select all

 sudo 
When you say that you cannot login, what exactly happens? What do you see?

Can you access a rescue mode from the Grub screen?

jmgibson1981
Posts: 300
Joined: 2015-06-07 14:38
Has thanked: 11 times
Been thanked: 33 times

Re: Debian 11 Bullseye HELP!

#3 Post by jmgibson1981 »

Code: Select all

sudo chmod -vR 660 /
You wrote 660 permissions to the entire drive. I hope you have backups. This is not realistically recoverable. You can boot live and try to get your data out but this is a prime lesson on why backups are so important and always double checking exactly what you type when you run anything with sudo or root. My condolences.

User avatar
hawghaven
Posts: 13
Joined: 2022-11-21 17:16
Has thanked: 1 time

Re: Debian 11 Bullseye HELP!

#4 Post by hawghaven »

Thanks for the advice. I had a feeling it was going to be bad. It just gives me a good excuse to change Debian flavors. I never really liked that one. I was able to boot up with a "LIVE" boot and extract my HOME directory out. I will reload today. Thanks again for your kind words
"My condolences"
.

jmgibson1981
Posts: 300
Joined: 2015-06-07 14:38
Has thanked: 11 times
Been thanked: 33 times

Re: [Solved] Debian 11 Bullseye HELP!

#5 Post by jmgibson1981 »

You aren't the first and won't be the last. Many of us have done something similar. I know I have.
GNU stuff is wonderful, but it can be much less forgiving of mistakes. Price one pays for having that much more power and control of your system.

Learn from it, don't run from it :)

Post Reply