I cant do anything anymore and have no idea why. My user is in wheel, and I use /bin/bash as shell.
I cant even to these tasks as root, as root is not allowed to do them. There is something seriously broken.
Reason before (already resolved)
The first reason was changing it back to /usr/bin/bash as I thought that was the right one. The result was that my $DISPLAY couldnt connect, X11 for some reason still worked but Wayland crashed.
So I was nearly going insane but found the reason, changed the shell to /bin/bash and it worked.
Now I got the same thing again??
Whats happening now
I had the same thing, just when I was changing my KDE window decorations to Willow-dark (as Aurorae themes were fixed and I wanted to try it) my session crashed.
I was thrown out to SDDM, tried logging in to Wayland, same error again “Could not connect to $DISPLAY” e.g. (X11 again works, using it)
The thing is, now my shell was /bin/bash ! I also tried changing it to /bin/fish as this didnt give any errors before too, still doesnt work.
What I did
I have no idea
- I created some polkit-accept rules for mounting and unlocking LUKS drives and starting virt-manager, as well as running KDE-Partitionmanager. I noticed that partitionmanager was no longer working so I removed that rule (moved the file from
/etc/polkit-1/rules.d/
to/var/home/$USER
) and restarted the app, still same errors.
example
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.udisks2.encrypted-unlock-system" && subject.local && subject.active && subject.isInGroup("wheel")) {
return polkit.Result.YES;
}
});
Also adding the polkit exceptions didnt create an issue before, this makes no sense. I used it for a few days without problems.
I tried changing my shell to fish and rebooted lots of times, no changes. My shell now is /bin/bash
I also removed all the polkit rules, still cant mount any LUKS drives, get “error not permitted” in Dolphin. Normally mounting them should invoke the polkit prompt?
Occuring errors
starting wayland with startplasma-wayland
Error: could not determine $DISPLAY.
Error: Can not contacr kdeinit5!
org.kde.startup: "kdeinit5_shutdown" () exited with code 255
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.
Trying to change the user shell to /bin/bash (echo $SHELL
shows I am using it and root does too)
[user@fedora user]$ sudo usermod -s /bin/bash $USER
Poorly the user cant execute »/usr/sbin/usermod -s /bin/bash user« as root on fedora.
[user@fedora user]$ echo $SHELL
/bin/bash
[root@fedora user]# echo $SHELL
/bin/bash
Anyone knowing what to do?
/var/home/user ❯❯❯ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
user:x:1000:1000:user:/home/user:/bin/fish
Another thing I see is when using bash with sudo I have to enter the password every time. Maybe this is because I get the same “poorly root cant execute that” error as above