1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

No login possible after sudo in Mint

Discussion in 'Crashed!' started by cloasters, Mar 12, 2016.

  1. Daniel~

    Daniel~ Chief BBS Administrator Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    11,172
    Likes Received:
    161
    Trophy Points:
    63
    Location:
    Greenwater WA
    Home page:
    Dream of the dreams of angles .":O}
  2. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    Re: ThunderRd's post #97
    Because of Terminal's own weirdness it looks like there's a space between "login.keyring" as well as "user.keystore." Taking its foibles into account there is most, most likely no "Space" between them.

    Yes, Daniel~, Terminal can induce many errors because that's what the evil Unix bahstage was trying to do decades ago. By typing in the requests and commands I'm trying to learn and use the precision involved. I swear I'll learn to use cut-n-paste as soon as I can, but please realize that following ThunderRd's and the other fantastic folks that are working so hard to help me requests on the command line are very often un-cut-n-pastetable.

    Thank you a bunch for your concern and help!
  3. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    Ref Gizmo post # 91
    Ref Daniel~ post # 98
    Ref ThunderRd post # 97

    Gizmo, the link you gave me about cutting - pasting text to the Terminal worked like a charm. Thank you very much!

    Thank you for the nudge Daniel, I needed that!

    Thank you Sir ThunderRd! I followed your instruction for Option A by cutting and pasting your command line. I then entered all of the commands you posted. Sorry, I dunno how to copy what's displayed in Terminal to a post, but there are 11 items. "total 64"
    Skipping the "drwx, drwxr-xr-x etc, the number, my-name twice etc" info, "keyrings-OLD" is among the 11 listed items.
    If you want to see all of them, please let me know, before the commands are hidden with age.
  4. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    Nope, if keyrings-OLD is there, you have successfully renamed the directory. I'm satisfied with that.

    Right, you're going to reboot now.

    One thing though, if you are asked for any *new* passwords upon rebooting, it should be a one-time-only deal. If you are asked for a 'new keyring password', enter BLANK PASSWORD ONLY [in other words, leave the field blank] and press 'continue' or 'OK' or whatever it offers. You will not be asked for any new passwords again after this.

    It may also ask you if you accept 'unsafe storage'. If it does, click yes and continue.

    Do not enter any new passwords. Enter only your main password [the one you created when installing Mint] to login.

    OK, close your eyes, think of England, and reboot for Queen and country.
    Last edited: Mar 24, 2016
  5. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    Thank you, ThunderRd!
    Ref ThunderRd post # 104

    Rebooted, no prompts whatsoever were seen. Whew! Just for laughs I'm gonna do a complete shutdown and boot from "cold." Hoping no prompts are seen!
  6. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    After waiting four minutes to shutdown, plus eleven more minutes for M$ to ram components of Win10 down my throat unasked for...wait a minute... I was hallukinating from the horrible past. Eek!

    Praise Linux!!
    Shutdown and cold boot produced no password prompts. Me so happy!
    Except for the fact that I'd prefer to enter my one and only known password to completely boot. I'll get some help with that tomorrow, hopefully.

    You guys are the world's best Linux helpers, thank you a million!
  7. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    George, I'll help you with the autologin later. Stand by for that.

    First, we need to test. Can you sudo now?

    Try:
    Code:
    sudo fdisk -l    [that is a lowercase L]
    You should be asked for your normal login password, and then you should get some output. If you see some hard disk information output from fdisk, sudo is working correctly [I don't need to see it]

    If your fdisk command is refused, there's something wrong, but I am 99.9% sure the command will work.
    Last edited: Mar 24, 2016
  8. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    @ Daniel @ Booman:
    OK, looks like George's sudo problem is most likely solved.

    While I wait for him to confirm this, can one of you Mint users please type 'sudo mdmsetup' and tell me what you see? I'm looking for the 'security' page. Maybe a screenshot for my benefit?

    I think this is where George can disable the automatic login, but I need confirmation.

    "Close your eyes, think of England, and pull the trigger." I'll bet 5 bucks I'm the only one here that knows what movie that's from.

    Anyone want to weigh in? Clue: David Niven
    Last edited: Mar 24, 2016
  9. Gizmo

    Gizmo Chief Site Administrator Staff Member

    Joined:
    Dec 6, 2012
    Messages:
    2,230
    Likes Received:
    156
    Trophy Points:
    63
    Location:
    Webb City, Missouri
    Home page:
    Guns of Navarone
  10. Gizmo

    Gizmo Chief Site Administrator Staff Member

    Joined:
    Dec 6, 2012
    Messages:
    2,230
    Likes Received:
    156
    Trophy Points:
    63
    Location:
    Webb City, Missouri
    Home page:
  11. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    Peace, health and wealth be upon your households ThunderRd, booman, Daniel~ and Gizmo. Thank you oh so much!
    Copied and pasted your command, here is the return:

    [sudo] password for my-name:

    I sure hope it's what we want to see.
  12. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    Alrighty then, after entering my password and "Entering" I see:

    "WARNING: GPT (GUID Partition Table) detected on 'dev/sda' ! The util fdisk doesn't support GPT. Use GNU Parted."

    Disk /dev/sda: 512.1 GB 512110190592 bytes
    255 heads, 63 sectors/track followed by a lot more normal looking HDD (SDD in my box) information

    Then

    Device Boot Start End Blocks ID System
    /dev/sda1 1 1000215215 500107607+ ee GPT

    and back to my my-name@shortened version of my-name ~$
  13. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    OK, that's done. Your sudo/keyring problem is gone.

    Now, to remove the autologin, try this. I was waiting for Daniel to try it first, but he hasn't checked in, so:

    Code:
    sudo mdmsetup
    You should raise a window with some tabs after you enter your password. Click on the 'security' tab and tell me what you see there. Or take a screenshot, if you can, and post it here.
    Last edited: Mar 25, 2016
  14. Daniel~

    Daniel~ Chief BBS Administrator Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    11,172
    Likes Received:
    161
    Trophy Points:
    63
    Location:
    Greenwater WA
    Home page:
    Your wait has been rewarded...I think! ":O}

    I was just so tempted to remove the first pic, Then I thought no wait, this is a teachable moment! LOL

    George look at the two pic and see how easy it is to go wrong...even when you cut and paste! ":O}

    Attached Files:

  15. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    @Daniel~, I need to see the window you raise after entering the password. 'Security' tab.
    Last edited: Mar 25, 2016
  16. Daniel~

    Daniel~ Chief BBS Administrator Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    11,172
    Likes Received:
    161
    Trophy Points:
    63
    Location:
    Greenwater WA
    Home page:
    -
    Well why didn't you say so...wait don't answer that! ":O}

    Attached Files:

  17. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    @Daniel~
    In the autologin screenshot, what does it look like when you dropdown the 'enable automatic login/daniel' pane?

    I am pretty sure this is where George can disable the autologin function, and make it so he has to enter his password when booting.

    Can you screenshot that for me?
  18. Daniel~

    Daniel~ Chief BBS Administrator Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    11,172
    Likes Received:
    161
    Trophy Points:
    63
    Location:
    Greenwater WA
    Home page:
    Screenshot from 2016-03-25 08:38:40.png
    In my case it doesn't drop down it mearly highlites my name, probably because it's a single user machine?
    P.S.
    Very strang! I did my timed screen shot, but the color change doesn't show up. In any case my name is all that drops.
  19. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,756
    Likes Received:
    87
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    Can you UN-tick the box to the left of 'enable automatic login'?

    @George:

    Code:
    sudo mdmsetup
    Enter your password, and go to the autologin page. Untick the 'enable autologin' and untick the 'enable timed login' boxes.

    Then logout or reboot, and see what happens.
  20. cloasters

    cloasters Moderator

    Joined:
    Jul 3, 2013
    Messages:
    8,383
    Likes Received:
    82
    Trophy Points:
    48
    You guys are absolutely the BEST Linux helpers in the known world!

    Ref Daniel's post #116

    The very first screen in his examples looks darn near exactly, or maybe absolutely like my Terminal. Guess I shouldn't be concerned about the ~six "GTK critical...... failure lines? I hope not, 'cause I don't know what "GTK" means.

    My machine produced a window very, very near to identical with Daniel's~ second screen, horizontally speaking. I de-selected "automatic login" and disabled "timed login." Hope this is OK.
    Then I shut her down and cold booted.

    Voyla like them sez in France, it paused during boot and asked me for my password. I filled it in, "Entered" (should have clicked instead) and hey presto my lovable Linux machine presented me with the glorious background photo of the Grand Canyon that I like so much.
    Gonna reboot, fingers are crossed...

    Success! Thank you extremely much for your help and patience!!

Share This Page