Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

How to write script for login of Ubuntu?

Discussion in 'General Linux' started by dnlaua, Dec 5, 2018 at 10:55 PM.

  1. dnlaua

    dnlaua New Member

    Joined:
    Nov 16, 2018
    Messages:
    6
    Likes Received:
    3
    I'm pretty noobish at Linux and I wouldn't know the first way to go about this. How would I write a script that presses the Enter key as soon as I type in the right password to login? When I login to Windows 10 and put the pin, it automatically signs me in when I type it right (Or maybe since it's the pin, it's once I type 4 characters, not necessarily if it's right or not? Not sure). I know it's not a big deal to press the Enter key, but I just feel it's smoother on Windows when it automatically signs me in and I would like to learn how to customize Linux more anyway. Any help would be appreciated. Thank you.


    (Log in to hide this advertisement)

     
  2. Lazydog

    Lazydog Member

    Joined:
    Jul 27, 2017
    Messages:
    59
    Likes Received:
    56
    I find this to be a BIG security risk. Here's why, lets say your password is sercurepass and I think your password is really serucepassword. I start typing and once I hit the last 's' I'm logged in. If the system would have made me press the enter key I would have never been able to login and would still be guessing what your password is. By automatically logging me in once I have the correct key sequence is in no way safe and makes breaking into your system that much easier. Even if I automated the login and have the wrong password as above I would still gain access to your system because once your system see the key combination it logs me in.

    People need to stop being so lazy. This is one of the reason why we have so many security breaches everyday.

    Mind sharing your ip address?
     
    wizardfromoz likes this.
  3. dnlaua

    dnlaua New Member

    Joined:
    Nov 16, 2018
    Messages:
    6
    Likes Received:
    3
    Makes sense. I appreciate the input. Don't appreciate the smart-alecness.
     
    wizardfromoz likes this.
  4. Rob

    Rob Administrator
    Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    322
    Likes Received:
    800
    I think it goes automatically once it has X characters - which wouldn't work for a password field unless you force x chars long on the system.

    You'd need to edit the login process - which, as a non-programmer/coder, i'd have no idea where to start other than finding the correct process, find and modify the code, then re-build it.

    It's something that certainly could be done by someone who would know how to do it, but a lot more involved than you're thinking.
     
    wizardfromoz likes this.
  5. Lazydog

    Lazydog Member

    Joined:
    Jul 27, 2017
    Messages:
    59
    Likes Received:
    56
    Hey, I call them like I see them.
     
  6. wizardfromoz

    wizardfromoz Super Moderator
    Staff Member Gold Supporter

    Joined:
    Apr 30, 2017
    Messages:
    1,821
    Likes Received:
    1,827
    If I had a beak like Robert's I'd have an attitude too :rolleyes:

    Seriously though, and Robert knows me for an Aussie Larrikin, who won't miss the chance for a pun, security is one of the fundamentals of Linux over other OSes.

    On that subject, @dnlaua , have we checked with you that you have your Ubuntu firewall activated? It is not activated by default, for reasons that are beyond my ken.

    Code:
    sudo ufw enable
    Avagudweegend, all - yeayy the site is back up

    Chris Turner
    wizardfromoz
     
    Lazydog likes this.

Share This Page