I am really bad at remembering long passwords (but i can remember short random ones very well) and that is why i would prefer to be able to use password that are relatively short, but I'm afraid those would lower my system's security.
In order to increase security over a short password for sudo I wanted to increase the delay between failed attempts.
What would you consider a good guidelines for setting up the delay of sudo in pam relative to the passwords length?
Do you consider this method to be problematic/unsecured or where do you think it can fail.
If it is problematic what would be a better alternative to fight hard to remember long passwords.
(the computer in hand is not a server and does not allow any kind of remote accesses with ssh/rdx or such, i use it as my personal desktop)
sudousually just use the password for your "normal" account? So if you remember your normal password, you also got the password needed to become root withsudo. Yes, you can set a root-password and usesu, but that doesn't involvesudo. If you decide to usesube sure to restrict which users can usesu- either by config ofsu, or by limiting execution-rights. Problem withsudois that if your user-account password is weak, so is the one needed to become root - and if they first crack your normal account, they can alsosudofrom it.sudoalso. If it's a short password, you probably should add a longer delay on your normal log-ins too, not just when usingsudo. As forsudo, unless you use it very frequently, I guess you could add a very long retry delay, without it being too irritating for yourself. Besides,sudo"remembers" the password for a little while, so if you usesudotwice 5-10 minutes apart, you'll only need to enter password once.