Announcement

Collapse
No announcement yet.

Annoying password prompts for everything

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Annoying password prompts for everything

    I get that requiring a password for any 'important' change increases security and all that fun stuff, but the reality is i dual boot Kubuntu and Windows, and I really only care about the big boost to compile time I get running native Linux over WSL2. The issue I have is that I've been logged into Kubuntu for about 10 minutes to make some minor changes, and I've been asked for my password 5 times. This is extremely annoying. I want to disable all password prompts. If it requires giving my username root access, I am okay with that. I understand the risks and do not have any concern about security or losing my data because this is an expendable installation that I can easily completely redo whenever I want or need to. Please inform me of a way to disable this nuisance, thanks!

    #2
    if you are being prompted for a password, you are accessing non-user system, level stuff, not simple, unimportant things.


    Code:
    sudo -i
    For terminal stuff, this gets you a permanent session.
    though sudo usually holds for 10-15 minutes in a session/window

    For GUi stuff, your user account is already in the sudo group, ie has admin privileges. The systems in kubuntu/Kubuntu/other distros are set up to utilize this sort of setup
    if you are mostly just editing text/config files using kate/kwrite, you can use pkexec to start them as 'root'. You can create a custom shortcut for it

    pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true kate

    One option is to enable the root account (easily searched, not recommended), and log in to that account, no sudo needed. Probably for your use case, is likely fine.

    I know there are still other ways to get rid of passwords in *buntu without logging in as root, I just haven't looked for them in years, decades, even.
    Last edited by claydoh; Jul 31, 2022, 04:08 PM.

    Comment


      #3
      Maybe you're getting kwallet password prompts. You can set the "kdewallet" password to a single space, to disable the password and automatically open the wallet.

      If you use sudo in a terminal, by default it holds on to the password for 15 minutes, but that only works for the same terminal session.
      Regards, John Little

      Comment


        #4
        Originally posted by jlittle View Post
        Maybe you're getting kwallet password prompts. You can set the "kdewallet" password to a single space, to disable the password and automatically open the wallet.

        If you use sudo in a terminal, by default it holds on to the password for 15 minutes, but that only works for the same terminal session.
        The prompts I'm getting are simple elevation prompts. I also get keyring prompts for whenever I open discord or my browser. The closest thing I can think of is Windows' User Account Control. If this worked like that, just asking permission to make changes, instead of requiring a password, I'd probably not have any issue with it.

        Comment


          #5
          Originally posted by claydoh View Post

          One option is to enable the root account (easily searched, not recommended), and log in to that account, no sudo needed. Probably for your use case, is likely fine.
          I think I'll do this. I wasn't sure that this was an option. I know WSL2 just uses the root account by default. Also whenever I'd ssh into a home server, it's usually as root as well. SO I hadn't expected the constant handholding... It really seems like the Password prompts are just there for "HEY! You could break things doing this!" But a UAC-like notification would be just as informative, without being as much of a nuisance. Thanks for the tip!

          Comment


            #6
            Originally posted by Ryuhouji View Post
            I also get keyring prompts for whenever I open discord or my browser.
            Thats odd. Kubuntu uses its kwallet to store passwords etc, and 'keyring' is what Gnome uses. So you may have both installed?
            kwallet is normally set up to unlock when logging in, set to the user account password. You usually never see a password prompt for it at all.

            Some applications seem to assume that *everyone* is using Gnome, and installs gnome-keyring. Manually installed browsers and other third party software, the sort that store login credentials, mostly.. It is easy enough to uninstall gnome-keyring if you don't use a Gnome desktop at all.

            it is not a hand holding, it is kind of a mis-configuration of sorts (the 'keyring' prompts, that is). Unless I am editing multiple system level configs using a GUI text editor, I hardly ever see a barrage of password prompts. throughout my day, even when building or compiling things.

            You get much fewer prompts when using the command line, for sure. But in Linux, you will still have more prompts for a password than Windows, especially when modifying or doing other system-level actions.

            Comment

            Working...
            X