Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: how can i make a root password to be a 4 digit pin code?

  1. #1
    Join Date
    Jan 2017
    Location
    ISRAEL!
    Beans
    500

    how can i make a root password to be a 4 digit pin code?

    i've a media center computer that i want a short password to, but ubuntu won't allow this.. is there a way to fix this?
    i use a remote control and it is not comfortable to type a long password in it..

    tnx
    my desktop computer is with Ubuntu 24.04 LTS

  2. #2
    Join Date
    Dec 2014
    Beans
    2,682

    Re: how can i make a root password to be a 4 digit pin code?

    I don't know about the password for root since the root user is not allowed to login directly on Ubuntu for security reasons, but you can set a password for any other user from the command line using the command 'passwd'. While the graphical tool to set passwords enforces a minimum length (6 characters on Xubuntu 22.04) passwd doesn't. In a test i could change the password for my secondary account to a single character.

    Holger

  3. #3
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,815

    Re: how can i make a root password to be a 4 digit pin code?

    I know you don’t want to hear this, but don’t set a short 4 letter password. You will be sorry eventually and you will have to reinstall to get rid of the script kiddies.

    You should use at least a 12 digit password to keep scoundrels out.

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: how can i make a root password to be a 4 digit pin code?

    I have my media center playback devices (not the server), automatically login and start the software. The userid is "kodi" and the setup just has a check-box.

    If you want to set a password for a user that doesn't meet the built-in minimim standards, usually, typing the non-compliant password 3 times will force it.
    Code:
    $ passwd 
    Old Password: xxxxxx
    New Password: yyyyyy
    To short, again?  yyyyyy
    To short, again?  yyyyyy
    $
    And that's it. I don't know the exact prompts, but something like that.

    For systems on the internet, passwords should be over 12 characters and never allow password-based logins over the internet, always use cert or key-based credentials over the internet. As everyone here probably knows, setting up ssh-keys is just 2 commands from the client. It is both more secure AND more convenient. That never happens, except with ssh-keys.

  5. #5
    currentshaft is offline Oops! My Coffee Cup is empty.
    Join Date
    May 2024
    Beans
    Hidden!

    Re: how can i make a root password to be a 4 digit pin code?

    Quote Originally Posted by HermanAB View Post
    I know you don’t want to hear this, but don’t set a short 4 letter password. You will be sorry eventually and you will have to reinstall to get rid of the script kiddies.

    You should use at least a 12 digit password to keep scoundrels out.
    Stop the FUD, please.

    There are appropriate uses of short passwords, even no password, even no encryption under certain conditions. An example of that would be a shared media PC inside a home which is both physically controlled and is behind a NAT.

    OP: change the password as root, it will bypass PAM policy enforcing a minimum requirement.

  6. #6
    Join Date
    Jan 2017
    Location
    ISRAEL!
    Beans
    500

    Re: how can i make a root password to be a 4 digit pin code?

    tnx i will use the command

    the thing is that when the computer goes to a suspend mode it requiring me the password after waking the computer..
    is there a fix for that that will make it not ask me for password?


    so what you are saying is that if the computer is connected to the internet i will need a 12 character good password?


    the other issue are the updates that also need a password..

    i've a remote like that..
    https://duckduckgo.com/?q=%22Pepper+...22&t=lm&ia=web
    not easy to type with it..

    while using windows i never needed a password once after the initial logging in.
    on ubuntu i set it to not ask for a password upon logging in but there are other occasios when i you do need it..

    i wish it was simpler
    my desktop computer is with Ubuntu 24.04 LTS

  7. #7
    Join Date
    Oct 2005
    Location
    Lab, Slovakia
    Beans
    10,815

    Re: how can i make a root password to be a 4 digit pin code?

    I wish it was FUD. I’ve been around the block a few times.

  8. #8
    Join Date
    Jun 2014
    Beans
    7,632

    Re: how can i make a root password to be a 4 digit pin code?

    the other issue are the updates that also need a password.
    Updates are modifying/adding to system files which require root/sudo permissions. If you don't have any type security such as a password, anyone with physical access can do anything they want including delete your data. If you like the windows way of doing things why not use it? Did you search online how to disable password request after suspend on Ubuntu? I found a number of sites but some are for specific release versions of Ubuntu and may not work on other versions. Since you haven't indicated which Ubuntu you are using, just put that into your search.

  9. #9
    Join Date
    Mar 2011
    Location
    U.K.
    Beans
    Hidden!
    Distro
    Ubuntu 22.04 Jammy Jellyfish

    Re: how can i make a root password to be a 4 digit pin code?

    i wish it was simpler

    On the subject of password management I've recently started using a Proton account and I find the companion Proton Pass to be very useful. But Proton structure takes a bit of getting used to. I'm still learning.

  10. #10
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,824
    Distro
    Ubuntu

    Re: how can i make a root password to be a 4 digit pin code?

    the thing is that when the computer goes to a suspend mode it requiring me the password after waking the computer..
    is there a fix for that that will make it not ask me for password?
    Settings > Privacy and Security > Toggle Lock Screen on Suspend to off.
    And also toggle Automatic Screen Locking to off as well.
    Last edited by deadflowr; July 7th, 2024 at 09:55 PM.
    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
    .

Page 1 of 2 12 LastLast

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
  •