I broke something with usermod - authentication

Debian Buster, KDE-Plasma
I'm a newbbie on Linux and Programming and I broke something installing Python 3.8 and I can't find a solution because I can;t really find what I did. I'm really interested on understand what's happenig, because I'd like to learn a lot about Linux, but I came from Windows, and user's accounts and permissions are still a mistery for me.
I have an idea about what I did wrong and I can describe the symptoms.
what I did wrong: I used something similar to "usermod -a -G root my_user_name" to give sudo permissions to my user account.
The symptoms are:
I lost my login-name in login screen under Plasma. No user account, neither user icon. Before breaking the system I only had to write password, now I also have to enter my user name too.
Login screen is from Gnome, switch-user screen is from Plasma.
On desktop everything is ok, but when I open Konsole, my user starting folder is /root, and root is starting in home/user folder. I'm completly lost.
Something has also changed on permissions, because though I'm not using SU account, managing some installations and some operations ask for used password, when I was used to enter Root password.
I've been searching internet and I can't find what I modified to get this behaviour.
I took a look at /etc/passwd andthe only thing that look strange is a line where my complete name is written and the starting folder is /bin/bash. If I change this into /home/user, things get worse, because konsole complies about a problem and cant be started. I also looked at etc/groups and can't figure out if something is wrong .
I don't want to touch any more before getting a clear idea about the situation, because system is full of apps and took me a lot of hours to configure it like this.

I fixed part of the problem. Now I have SDDM login screen. I reinstalled SDDM default theme (Breeze). Now I can switch between other themes, not a lot because many of the depends on Qtquick-controls 2.5 and I have 4.1x installed.
What still makes me pull my hairs is how the hell I've been able to swap user and root login folders with just an instruction (usermod)

Related

Mac OS X how can binary application (packaged in .app) change System Configuration without asking for password?

I am writing an application that when is running should modify SystemConfiguration to set system wide proxy.
I know it is possible to do that using "Authorization Services" framework provided by Apple, however I see that it keeps asking for a user password to allow changes.
On the other hand I have 3rd party application (not the one I am writing) that does the same, but does not require user password. The application is not even written in Objective-C, but written in FreePascal (FPC) instead. Unfortunately I have no source code for this application to see how it does this trick.
I know I should be able to achieve the same (system config changes without sudo password) by either having Privileged Helper Tool supplied with the application (and perhaps install it on first run) or by going even nastier and loading a kext.
However I see that this application does neither of above. It only performs system calls and no password asked! I am completely puzzled how did they achieve that and would like to find a way to do the same.
So the question is - how to achieve complete "no password asked" for changing System Configuration on Mac OS X with an application?
PS: Application I have at hand runs as user, not root. And there is no modifications to sudoers neither.
This is silly, but after 2 days straight of searching for a solution I found that there is no special code nor any tricks required.
This is easily done via setting setuid bit to binary that requires escalated privilege and calling setuid(0) in the code before doing operations that require privilege (not sure if second part is necessary).
Relevant links:
Apple documentation
Related question on SO
PS: This works basically on any Unix-like system (BSD, Linux Solaris etc) with one details - this does not work on scripts (the ones that require hash-bang #! in order to execute interpreter) with exception of Solaris, where it seems to work just fine.

IIS Remote Manager is missing icons for a specific site

I have a developer that came to me with and issue. He is remotely managing one of his sites on one of our development servers and all of a sudden he lost all of the icons in IIS for this specific site..
All other sites display his icons correctly and when I have him test on another computer everything displays correctly.. So what could have gone wrong on his machine? It was working but is now not working.. Any help here would be greatly appreciated.. Never seen this before and cant seem to figure out what caused it to just go away.. There should be so many more options for him.. Plus if you can see he lost the ability to see the folders on this site also.. And it is every site on this server.. But like I said it is just on his computer, he goes to a different computer he has access to everything..
Guess I cant post a picture.. But if you need to see it I can send it to you if you need to see what I am talking about..
Come to find out he was ignoring the prompt that he was getting saying that there were new versions of the tools to download on his machine that are on the server.. He just hit Cancel instead of selecting them and hitting ok to install the DLL's and enabling them.

phpmyadmin not showing theme images

I just installed phpmyadmin on my local machine. However, the images for any of the buttons are not showing up. I tried installed a new theme, same thing. When I go to the images folder, they are all there.
I read one post where a user had to allow proper read permissions through IIS. I've beenn clicking permissions, but I think I'm a bit lost as to finding the right setting.
Does that make sense to anyone? :) - I am looking for step by step instructions on giving the proper read permissions so that the images can display when I load phpmyadmin.
Thank you.
If anyone else has this issue, it has to do with allowing IIS user permission to c:\temp, if that's where your PHP temp file folder is. You can check this by running phpinfo() from within a php file.
Unfortunately, I was messing with so many permissions, I'm not sure what exactly did it, I just know that it had to do with the temp folder.

Trac doesn't see logged with basic authentication user

After upgrading server to Debian Wheezy I get a strange problem: after login via basic auth (which works), trac opens, but looks like I not logged in into it, like anonymous. And I cannot create task, comment and so on.
After upgrade system I reinstall trac via standart python ./setup.py install, and nothing else.
How to fix this?
I dont't know what the cause of the problem, but after recreation new working dir, reconfiguring apache to this new dir, all works fine.

vlock on raspbian wheezy doesn't work properly

I've set up raspbian "wheezy" (more information here, and image file here) on my recently arrived raspberry-pi (model B, but with 256MB RAM). Since I plan to use it via SSH from other locations, I was looking for a way to lock the console on the actual machine.
Raspbian is the first unix based OS I am working with, so I'm not really familiar with it, but I think I am looking for something like "vlock".
I installed vlock like this:
apt-get install vlock
When I now log into my pi via SSH from my Windows PC vlock works just fine, but when I try using it on the machine itself it shows a strange behaviour.
If I enter a wrong password, I get the usual message:
vlock: Authentication failure
but immediately after that the commandline shows up as if I entered the right one. So basically everyone can just roll his or her head over my keyboard to unlock my pi.
Does anyone know if this is a known bug (or even intended)? Or are there any equivalents to vlock that I could try?
Thanks in advance.
PS: This is my first question on stackoverflow so I hope I provided enough information. If I didn't, feel free to comment/ask.