Crash; I love to dive deep Into troubleshooting this for Learning Proposes.(After a year of no errors)
UPDATE: don't need advice. I followed most people opinion on start fresh.
I have another post about it but decided to create a new one with more details.
I was Editing the i3 config file and exit to take a break; when I reopen the session I notice something happened, I have no background, terminals with no transparency and permission denied access for almost anything.
At this point, I have full root access; I do have a full system backup but like I mention I would love to learn to fix my system instead of erasing and reinstalling.
I appreciate any suggestion, comments, anything you need I will provide and I will follow instructions as well.
################################################################################
For now, I am heading towards https://wiki.archlinux.org/index.php/General_troubleshooting, to begin with.
#################################################################################
to start throwing some clues: I get the access permission error "Permission denied".
I noticed the cd command it doesn't allow me to enter .cache folder but if using sudo I get "command not found".
and is only with the .cache folder.
Because I get denied permission, not startup script executes leaving me with no background no dunst no Compton and so on.
I get this error when trying to launch polybar: error: Failed to set background (reason: X resource "background" not found (no
fallback set))
*****************************************************************************
And I think the permission denied goes for everything:
sudo mkinitcpio -p linux >> $HOME/log/issue.log
"bash: /home/niko/log/issue.log: Permission denied"
*******************************************************************************
UPDATE: I honestly look thru the hole log but is very hard to understand what to look for. the system is been running very slowly and have been experiencing some crashing and freezing also. even a simple startx takes more then 3 seconds on something that never took more then 1 second.
thanks everyone who collaborate some how, I thinking of giving up on trying to fix this back. I feel Iam letting go of a very good opportunity to learn..
Edited 31 Oct 2019. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 0 · 100% up
- Kind
- Image
- ID
- dh67cc
12 comments
cd is a shell builtin, you cannot sudo that - and even if you could, the sudo session would terminate after the chdir and your PWD is back in the one of the parent process.
the output redirection is not part of the sudo call. This will only work when $USER has +x on $HOME/log and +w on $HOME/log/issue.log
Sounds like you just changed the permissions of $HOME..
Post the output of
ls -la $HOMEhttps://raw.githubusercontent.com/annata83/Arch_rice/master/lsla.txt
You've been starting software like firefox with sudo.
I'm not surprised that you're running into permission issues when doing stuff like that.
also your primary user group is misconfigured
You should make a note, by editing the initial post, NO NEED for advise, I deleted everything and started from scratch.
Don't make people read 30 comments to get to the end and even respond to some, when there is no feedback to what happened. This is of 0 value to anyone trying to read up on similar problems.
There's something you're not telling us about.. there's no chance that editing i3 config borked your system like that...
i gonna to continue working on this tonight, O am happy to share my activity log if there is a way to do that.
I agree with you, or at least how I lost sudo permission without using the chmod command at all right?
Honestly, at least for me, it sounds like your system is toast, as if you ran
sudo chmod a-rwx -R /*(DON'T RUN THAT) or something. It couldn't have happened because of i3's config file, I'm 100% sure in that.It is best to figure out what else you did during that session that caused your system to get into such a catastrophic state. Maybe you've launched some random script/binary from the internet and basically got attacked with a virus?
Does
/bin/sudoinstead ofsudowork?I have no idea what you mean by that.
But yes. My system was consistent, robust and fast as always; I was working on having vim always open in desktop two no matter where I was trying to call it from by using the --servername option. I was pretty close.
In my aliasrc I have a v Variable that takes the filename to do that:
v="$EDITOR --servername "Desktop2" --remote $1 "same thing going on in other places like ranger and on.What I was doing was trying to get I3 to always open an empty vim session in desktop two with that name "Desktop2" by executing:
exec_always --no-startup-id $term -e vim --servername "Desktop2"By doing that vim will open right on the second desktop just fine.
So I decide to have a previous vim Desktop2 session in desktop5 to see if it will bug Or what will happen, so it actually started to open in desktop 5 but with glitches here and there. Right then was when I sign out and went for a smoke to think about it to come back to the permission denied situation out of the blue. But I notice that vim is actually behaving wired to.
Honestly, that is all I was working on at that moment. I use my laptop at night every day, I been working on coding a website the day before and my last update was like four weeks ago before this.
The downloading thing may be a good question. what do you recommend to check a file for viruses?
UPDATE'.. I give up. fresh installed and rebuilding now. thanks everyone.