Bug 381350 - Regular Konsole opens to Super Root for a password instead of user bash.
Summary: Regular Konsole opens to Super Root for a password instead of user bash.
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 17.04.2
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 07:49 UTC by james
Modified: 2017-07-31 13:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description james 2017-06-18 07:49:53 UTC
When I open regular Konsole in openSUSE it opens with a password prompt instead of a user prompt. I tried adjusting the profiles, however, that doesnt work. It keeps returning to it's password form. It's a su- prompt and in the profile too. So, I use the gnome-terminal instead.
Comment 1 Nate Graham 2017-06-18 13:52:53 UTC
This is almost certainly a profile, configuration, or packaging issue. Please report downstream on the openSUSE bugzilla: https://bugzilla.opensuse.org/
Comment 2 james 2017-06-18 15:14:48 UTC
(In reply to Nate Graham from comment #1)
> This is almost certainly a profile, configuration, or packaging issue.
> Please report downstream on the openSUSE bugzilla:
> https://bugzilla.opensuse.org/

I have tried to speak to the folks at openSUSE and they blame the config or me. It is an install right out of the box so I don't understand how I could be to blame. So, since it's KDE, I thought I would try here. thanks for your help.
Comment 3 Nate Graham 2017-06-18 15:18:04 UTC
No problem. If this was a KDE issue, it would be much more widespread. The behavior of upstream software is strongly affected by configuration and packaging.

Are you using Konsole in KDE Plasma, or another desktop environment? Is your openSUSE install Tumbleweed or LEAP? Are you logging in as root or something?
Comment 4 james 2017-06-18 15:24:36 UTC
Nate Graham:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #3 from Nate Graham <pointedstick@zoho.com> ---
> No problem. If this was a KDE issue, it would be much more widespread. The
> behavior of upstream software is strongly affected by configuration and
> packaging.
> 
> Are you using Konsole in KDE Plasma, or another desktop environment? Is your
> openSUSE install Tumbleweed or LEAP? Are you logging in as root or something?
> 


I am using Konsole in KDE Plasma. The original install was LEAP and I
'upgraded' to Tumbleweed. The issue is still present. I log in as a user.

James Bunnell
Comment 5 Nate Graham 2017-06-18 15:25:44 UTC
IIRC upgrades from Leap to Tumbleweed can be buggy. Does it reproduce if you start off with a new Tumbleweed install? I used TW (installed fresh) for many months recently and never encountered this issue.
Comment 6 james 2017-06-18 15:29:53 UTC
Nate Graham:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #5 from Nate Graham <pointedstick@zoho.com> ---
> IIRC upgrades from Leap to Tumbleweed can be buggy. Does it reproduce if you
> start off with a new Tumbleweed install? I used TW (installed fresh) for many
> months recently and never encountered this issue.
> 

I really hate to install TW fresh. However, I have never seen this in
any linux distro before. It did appear there in LEAP before the TW
change so I doubt the TW upgrade would affect it. I'll just resign
myself to using gnome-terminal I guess for non root issues. And realize
I have 2 super root konsoles.
Comment 7 Wolfgang Bauer 2017-06-18 20:46:42 UTC
Sounds to me like you somehow made the "Root Shell" profile (that openSUSE ships for that additional "Terminal - Super user mode" application menu entry) the default.

To "fix" it, go into Settings->Manage Profiles and set a different one as default (if there is no other profile, create a new one).

I'm 100% sure this is not a downstream issue, except for the fact that openSUSE does ship that profile in their package.

Btw, installing fresh most often does not solve problems. Better try a fresh user account first to see whether it's a system-wide issue or related to the user settings.
Or delete the user settings, in this case ~/.config/konsolerc and ~/.local/share/konsole/.
Comment 8 Wolfgang Bauer 2017-06-18 20:48:07 UTC
(In reply to Wolfgang Bauer from comment #7)
> To "fix" it, go into Settings->Manage Profiles and set a different one as
> default (if there is no other profile, create a new one).

PS: if you create a new one, make sure the command is set to sh, and not "su -" (or you'll just get another root mode profile).
Comment 9 james 2017-06-18 23:34:17 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> Wolfgang Bauer <wbauer@tmo.at> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |wbauer@tmo.at
> 
> --- Comment #7 from Wolfgang Bauer <wbauer@tmo.at> ---
> Sounds to me like you somehow made the "Root Shell" profile (that openSUSE
> ships for that additional "Terminal - Super user mode" application menu entry)
> the default.
> 
> To "fix" it, go into Settings->Manage Profiles and set a different one as
> default (if there is no other profile, create a new one).
> 
> I'm 100% sure this is not a downstream issue, except for the fact that openSUSE
> does ship that profile in their package.
> 
> Btw, installing fresh most often does not solve problems. Better try a fresh
> user account first to see whether it's a system-wide issue or related to the
> user settings.
> Or delete the user settings, in this case ~/.config/konsolerc and
> ~/.local/share/konsole/.
> 
I signed into super user to do the above and before the prompt for my
user, i got this:

Password:
-bash: eval: line 24: unexpected EOF while looking for matching `"'
-bash: eval: line 25: syntax error: unexpected end of file

this was in the superuser term, the regular term is unusable since now
it flips all over my screen too.
Comment 10 james 2017-06-18 23:36:09 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> Wolfgang Bauer <wbauer@tmo.at> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |wbauer@tmo.at
> 
> --- Comment #7 from Wolfgang Bauer <wbauer@tmo.at> ---
> Sounds to me like you somehow made the "Root Shell" profile (that openSUSE
> ships for that additional "Terminal - Super user mode" application menu entry)
> the default.
> 
> To "fix" it, go into Settings->Manage Profiles and set a different one as
> default (if there is no other profile, create a new one).
> 
> I'm 100% sure this is not a downstream issue, except for the fact that openSUSE
> does ship that profile in their package.
> 
> Btw, installing fresh most often does not solve problems. Better try a fresh
> user account first to see whether it's a system-wide issue or related to the
> user settings.
> Or delete the user settings, in this case ~/.config/konsolerc and
> ~/.local/share/konsole/.
> 
By the way, neither of those files above exist.!
Comment 11 Wolfgang Bauer 2017-06-19 14:35:26 UTC
(In reply to james from comment #9)
> > Or delete the user settings, in this case ~/.config/konsolerc and
> > ~/.local/share/konsole/.
> > 
> By the way, neither of those files above exist.!

They must exist, if you ever made any change to the settings/profiles.

For clarification, ~ is a shortcut for the current user's home directory. And be aware that if you are in the "Root Mode" profile, ~ will point to root's home directory instead of your user's.

So better use a file manager (run as user) to delete them and your problem should be fixed.
Comment 12 james 2017-06-19 14:45:50 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #11 from Wolfgang Bauer <wbauer@tmo.at> ---
> (In reply to james from comment #9)
>>> Or delete the user settings, in this case ~/.config/konsolerc and
>>> ~/.local/share/konsole/.
>>>
>> By the way, neither of those files above exist.!
> 
> They must exist, if you ever made any change to the settings/profiles.
> 
> For clarification, ~ is a shortcut for the current user's home directory. And
> be aware that if you are in the "Root Mode" profile, ~ will point to root's
> home directory instead of your user's.
> 
> So better use a file manager (run as user) to delete them and your problem
> should be fixed.
> 
I checked it that way with a file manager and I'm telling ya, neither
exist! I think it's possessed :)
Comment 13 Wolfgang Bauer 2017-06-19 16:17:18 UTC
(In reply to james from comment #12)
> I checked it that way with a file manager and I'm telling ya, neither
> exist! I think it's possessed :)

Did you enable the option "Show hidden files" in your file manager?
Files/directories starting with a '.' are normally not shown by default.

Or run any other terminal app (e.g. xterm or gnome-terminal) as user and enter the following command to reset Konsole's settings to the defaults:
rm -r ~/.config/konsolerc ~/.local/share/konsole
Comment 14 james 2017-06-19 19:23:46 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #13 from Wolfgang Bauer <wbauer@tmo.at> ---
> (In reply to james from comment #12)
>> I checked it that way with a file manager and I'm telling ya, neither
>> exist! I think it's possessed :)
> 
> Did you enable the option "Show hidden files" in your file manager?
> Files/directories starting with a '.' are normally not shown by default.
> 
> Or run any other terminal app (e.g. xterm or gnome-terminal) as user and enter
> the following command to reset Konsole's settings to the defaults:
> rm -r ~/.config/konsolerc ~/.local/share/konsole
> 
ok, i tried both options above, one with the dolphin, and the other with
the command line. then i open konsole and its the same with a password
prompt. :/
Comment 15 Wolfgang Bauer 2017-06-20 20:04:30 UTC
(In reply to james from comment #14)
> ok, i tried both options above, one with the dolphin, and the other with
> the command line. then i open konsole and its the same with a password
> prompt. :/

Then try to reset the KDE4 konsole settings/profiles too:
rm -r ~/.config/konsolerc ~/.local/share/konsole ~/.kde4/share/config/konsolerc ~/.kde4/share/apps/konsole

Maybe that is already messed up, and Konsole/KF5 will migrate that on first start...
Comment 16 james 2017-06-20 20:35:24 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #15 from Wolfgang Bauer <wbauer@tmo.at> ---
> (In reply to james from comment #14)
>> ok, i tried both options above, one with the dolphin, and the other with
>> the command line. then i open konsole and its the same with a password
>> prompt. :/
> 
> Then try to reset the KDE4 konsole settings/profiles too:
> rm -r ~/.config/konsolerc ~/.local/share/konsole ~/.kde4/share/config/konsolerc
> ~/.kde4/share/apps/konsole
> 
> Maybe that is already messed up, and Konsole/KF5 will migrate that on first
> start...
> 

it did one thing, the screen was stuck on a white background, now it's
black. but still a password prompt.
Comment 17 Wolfgang Bauer 2017-06-21 22:06:57 UTC
(In reply to james from comment #16)
> it did one thing, the screen was stuck on a white background, now it's
> black. but still a password prompt.

Yes, black is the default background, and white the default for openSUSE's "Root Shell" profile.

What password prompt are you still getting?

I have to admit that I'm running out of ideas now, and I'm not really sure what your current problem is.

But, to repeat myself:

Try a fresh user account. Does the same happen there too?

Or create a new profile in Konsole and set it as default.
But to be sure, do it like this:
- Go into Settings-> Manage Profiles
- Click on an empty space to make sure that no profile is pre-selected (that would be taken as "template")
- Click on "New Profile..."
- Make sure that there's no mention of "su" in the "Command" text field (it should likely be "/bin/bash")
- Click "Ok", you should get back to the previous dialog
- Select your newly created profile, if it's not already selected
- Click on the "Set as Default" button
Comment 18 james 2017-06-22 01:41:47 UTC
Wolfgang Bauer:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #17 from Wolfgang Bauer <wbauer@tmo.at> ---
> (In reply to james from comment #16)
>> it did one thing, the screen was stuck on a white background, now it's
>> black. but still a password prompt.
> 
> Yes, black is the default background, and white the default for openSUSE's
> "Root Shell" profile.
> 
> What password prompt are you still getting?
> 
> I have to admit that I'm running out of ideas now, and I'm not really sure what
> your current problem is.
> 
> But, to repeat myself:
> 
> Try a fresh user account. Does the same happen there too?
> 
> Or create a new profile in Konsole and set it as default.
> But to be sure, do it like this:
> - Go into Settings-> Manage Profiles
> - Click on an empty space to make sure that no profile is pre-selected (that
> would be taken as "template")
> - Click on "New Profile..."
> - Make sure that there's no mention of "su" in the "Command" text field (it
> should likely be "/bin/bash")
> - Click "Ok", you should get back to the previous dialog
> - Select your newly created profile, if it's not already selected
> - Click on the "Set as Default" button
> 
I've tried everything you've suggested. the password prompt is
"Password:" no prompt for my user. i'm just gonna use the
gnome-terminal. thanks for your help.
Comment 19 james 2017-06-27 22:51:35 UTC
what does invalid mean? it is valid. i dont understand that. and it was not resolved. thanks.
Comment 20 Christoph Feck 2017-07-15 00:06:52 UTC
Invalid means there is something wrong on your system which we cannot fix.
Comment 21 james 2017-07-15 00:28:06 UTC
Christoph Feck:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #20 from Christoph Feck <cfeck@kde.org> ---
> Invalid means there is something wrong on your system which we cannot fix.
> 
indeed, konsole does not open at all now. so whatever that clean install
did from that dvd, something is wrong with it on my system. good enough.
i use a different terminal anyway, konsole is trash on my system. thanks
for the attempts to blame me for your software on my system out of the
box. "It's a feature."
Comment 22 Christoph Feck 2017-07-18 02:13:56 UTC
Are you sure it is a clean install? Many people are not aware that reinstalling Linux will usually never erase any files in /home/, in other words, you will have the same (buggy) configuration as before.
Comment 23 james 2017-07-18 06:58:41 UTC
Christoph Feck:
> https://bugs.kde.org/show_bug.cgi?id=381350
> 
> --- Comment #22 from Christoph Feck <cfeck@kde.org> ---
> Are you sure it is a clean install? Many people are not aware that reinstalling
> Linux will usually never erase any files in /home/, in other words, you will
> have the same (buggy) configuration as before.
> 
Yes, right off the DVD I downloaded. First time install.
Comment 24 Christoph Feck 2017-07-31 13:34:28 UTC
Are you sure the DVD installer formats all partitions? All installers I know preserve the existing partitions, unless you explicitely mark them for formatting.