• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

kürzeres Passwort zum Anmelden

Tobias66

Newbie
Hallo,
ich bin Neuling was Linux betrifft. Ich möchte mein Anmeldekennwort für Ubuntu ändern in ein kürzeres. Leider geht das nicht. Ich habe auch schon gegoogelt und verschiedene Tipps ausprobiert. Es ist nichts zu machen. Auch nicht über den Terminal.
Vielleicht kann jemand helfen? ;-)
VG
 
OP
T

Tobias66

Newbie
Es kommt immer die Meldung, dass das Passwort zu kurz ist. Ich möchte aber ein einfaches und kurzes Passwort benutzen.
 
OP
T

Tobias66

Newbie
ich habe im Terminal
sudo passwd
eingegeben; habe auch versucht, die common-password zu editieren (minlen=XYZ als Parameter hinzugefügt)
 
OP
T

Tobias66

Newbie
Was ergibt: sudo cat /etc/pam.d/common-password
zeigt ne Datei an:
Code:
#
# /etc/pam.d/common-password - password-related modules common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define the services to be
# used to change user passwords.  The default is pam_unix.

# Explanation of pam_unix options:
# The "yescrypt" option enables
#hashed passwords using the yescrypt algorithm, introduced in Debian
#11.  Without this option, the default is Unix crypt.  Prior releases
#used the option "sha512"; if a shadow password hash will be shared
#between Debian 11 and older releases replace "yescrypt" with "sha512"
#for compatibility .  The "obscure" option replaces the old
#`OBSCURE_CHECKS_ENAB' option in login.defs.  See the pam_unix manpage
#for other options.

# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules.  See
# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)
password    requisite            pam_pwquality.so retry=3
password    [success=2 default=ignore]    pam_unix.so obscure sha512 minlen=XYZ use_authtok try_first_pass yescrypt
password    sufficient            pam_sss.so use_authtok
# here's the fallback if no module succeeds
password    requisite            pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
password    required            pam_permit.so
# and here are more per-package modules (the "Additional" block)
password    optional    pam_gnome_keyring.so
 
Zuletzt bearbeitet von einem Moderator:

Sauerland

Ultimate Guru
Code:
sudo passwd USERNAME
USERNAME natürlich mit deinem Usernamen ersetzen.

Aber ich glaube 6 Zeichen ist bein Userpasswort minimum.
 
Oben