Results 1 to 10 of 10

Thread: Can I set a password after installing 14.04LTS?

  1. #1
    Join Date
    Oct 2013
    Beans
    76

    Can I set a password after installing 14.04LTS?

    We have Ubuntu 14.04 LTS on both desktop & laptop machines. At the time of installation I didn't set the need for a password to be required before booting up. Now I'd like to put that requirement in, retrospectively, without having to go back & reinstall everything.

    Can this be done, please, and if so, how?

    Thanks.

  2. #2
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Can I set a password after installing 14.04LTS?

    Quote Originally Posted by Richard_York View Post
    We have Ubuntu 14.04 LTS on both desktop & laptop machines. At the time of installation I didn't set the need for a password to be required before booting up. Now I'd like to put that requirement in, retrospectively, without having to go back & reinstall everything.

    Can this be done, please, and if so, how?

    Thanks.
    Enter the following command in a terminal or bash window.

    Code:
    sudo passwd
    And Enter your password (sudo user password admin)
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  3. #3
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    9,207
    Distro
    Ubuntu

    Re: Can I set a password after installing 14.04LTS?

    What do you mean?
    You can't install without setting a password.

    Are you meaning you set it to autologin?

    or
    I didn't set the need for a password to be required before booting up.
    do you mean setting up a crypto-something passphrase?
    Used for full disk encryption setups.

    I'm confused as to which password at boot you are referring to.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  4. #4
    Join Date
    Jul 2006
    Location
    Here
    Beans
    11,190

    Re: Can I set a password after installing 14.04LTS?

    could you mean you want to disable auto login?

  5. #5
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Can I set a password after installing 14.04LTS?

    Quote Originally Posted by deadflowr View Post
    What do you mean?
    You can't install without setting a password.

    I'm confused as to which password at boot you are referring to.
    +100 i did not even consider that ! I'm betting OP wants to disable auto login.
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  6. #6
    Join Date
    Jun 2014
    Beans
    4,761

    Re: Can I set a password after installing 14.04LTS?

    To repeat what was said above, in all the years I've used/installed Ubuntu it has been impossible to complete the install without creating at least one user with one password. This would be the primary user with root/admin privileges. You can easily create a password for another user. Clarify your situation please.

  7. #7
    Join Date
    Oct 2013
    Beans
    76

    Re: Can I set a password after installing 14.04LTS?

    Quote Originally Posted by 1fallen View Post
    +100 i did not even consider that ! I'm betting OP wants to disable auto login.
    I do apologise for using the wrong term. I reveal my lack of computeracy! Yes, there is of course a password which I set when installing, but it's not needed to login - switch on the power & the machine opens up without further need for password, and that's what I want to change.
    Thanks for your patience!

  8. #8
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: Can I set a password after installing 14.04LTS?

    Quote Originally Posted by Richard_York View Post
    I do apologise for using the wrong term. I reveal my lack of computeracy! Yes, there is of course a password which I set when installing, but it's not needed to login - switch on the power & the machine opens up without further need for password, and that's what I want to change.
    Thanks for your patience!
    You will need to edit as root this file: "/etc/lightdm/lightdm.conf"


    Code:
    sudo -H gedit /etc/lightdm/lightdm.conf
    It displays some text as follows:

    Code:
    [SeatDefaults]  
    greeter-session=unity-greeter  
    user-session=ubuntu  
    autologin-user=username
    This <username> would be your particular user name that is automatically logged in with or without password. Delete this username and type in the administrative username or leave it blank.
    I would just delete the username.

    Reboot the system. It will boot to the login selection screen with the password needed.
    Last edited by 1fallen; April 17th, 2018 at 10:24 PM. Reason: add info for claitry
    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  9. #9
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    9,207
    Distro
    Ubuntu

    Re: Can I set a password after installing 14.04LTS?

    Simple:
    Open User Accounts Either through the dash search or inside system settings.
    Click the unlock at the top right corner.
    Then toggle the Automatic Login from on to off.
    Do not mess with anything else.
    Close the window and you should now require a password to login.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  10. #10
    Join Date
    Oct 2013
    Beans
    76

    Re: Can I set a password after installing 14.04LTS?

    Quote Originally Posted by deadflowr View Post
    Simple:
    Open User Accounts Either through the dash search or inside system settings.
    Click the unlock at the top right corner.
    Then toggle the Automatic Login from on to off.
    Do not mess with anything else.
    Close the window and you should now require a password to login.
    Wow - as you say, simple. Thank you, that's much easier than I was expecting

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •