PatrickBaer
Well-Known Member
Wo ist denn mkpasswd hin?
bash-3.2# mkpasswd
bash: mkpasswd: command not found
Wo isn des hin?
bash-3.2# mkpasswd
bash: mkpasswd: command not found
Wo isn des hin?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
OpenBSD-kiste mit 4.3 drauf. mkpasswd war nicht zu finden.
Irgendwie scheint das Programm auch ein etwas ulkiges Eigenleben zu haben, oder? Unter Linux macht das ganze nix anderes als crypt auch, in den Manpages (die es auch unter OpenBSD gibt, im Gegensatz zum Programm an sich...) steht aber was ganz anderes. Ist ja auch wurscht jetzt!
Also ich hab einen FTP-Server mit 100 Accounts drauf, die brauchen alle neue Passwörter. Gibts da ein Shellscript dafür?
Ist es nicht Teil des Apache-Paketes?
Nur so ne' Idee.
.TH MKPASSWD 8 "March 8, 1991"
.UC 6
.SH NAME
mkpasswd \- generate hashed password table
.SH SYNOPSIS
.B mkpasswd
[
.B \-p
] passwdfile
.SH DESCRIPTION
.ft B
Mkpasswd has been obsoleted by pwd_mkdb(8).
.ft R
...
War das wirklich nötig deswegen gleich drei Threads zu starten?
[EDIT]
Jetzt bin ich selbst Durcheinander gekommen.... ein Thread in FreeBSD und zwei bei OpenBSD... Das oben genannte Package gibt es aber bestimmt auch unter OpenBSD
War das wirklich nötig deswegen gleich drei Threads zu starten?
Danach hat der OP aber nicht gefragt. Er moechte massenhaft Passwoerter neu setzen, nicht neue Passwoerter auswuerfeln. Und er erwaehnt mehrfach explizit mkpasswd, was es aber wie schon geschrieben seit Ewigkeiten nicht mehr gibt (und weder in Free-, Net-, OpenBSD jemals gab).
Es gibt unter OpenBSD auch keine Manpage zu mkpasswd
bash-3.2# uname -a
OpenBSD voodoo.animoto.intern 4.3 GENERIC#698 i386
bash-3.2# man mkpasswd
man: Formatting manual page...
MKPASSWD(1) MKPASSWD(1)
NAME
mkpasswd - generate new password, optionally apply it to a
user
SYNOPSIS
mkpasswd [ args ] [ user ]
INTRODUCTION
mkpasswd generates passwords and can apply them automati-
cally to users. mkpasswd is based on the code from Chap-
ter 23 of the O'Reilly book "Exploring Expect".
USAGE
With no arguments, mkpasswd returns a new password.
mkpasswd
With a user name, mkpasswd assigns a new password to the
user.
mkpasswd don
The passwords are randomly generated according to the
flags below.
FLAGS
The -l flag defines the length of the password. The
default is 9. The following example creates a 20 charac-
ter password.
mkpasswd -l 20
The -d flag defines the minimum number of digits that must
be in the password. The default is 2. The following
example creates a password with at least 3 digits.
mkpasswd -d 3
The -c flag defines the minimum number of lowercase alpha-
betic characters that must be in the password. The
default is 2.
The -C flag defines the minimum number of uppercase alpha-
betic characters that must be in the password. The
default is 2.
The -s flag defines the minimum number of special charac-
ters that must be in the password. The default is 1.
The -p flag names a program to set the password. By
default, /etc/yppasswd is used if present, otherwise
/bin/passwd is used.
22 August 1994 1
MKPASSWD(1) MKPASSWD(1)
The -2 flag causes characters to be chosen so that they
alternate between right and left hands (qwerty-style),
making it harder for anyone watching passwords being
entered. This can also make it easier for a password-
guessing program.
The -v flag causes the password-setting interaction to be
visible. By default, it is suppressed.
EXAMPLE
The following example creates a 15-character password that
contains at least 3 digits and 5 uppercase characters.
mkpasswd -l 15 -d 3 -C 5
SEE ALSO
"Exploring Expect: A Tcl-Based Toolkit for Automating
Interactive Programs" by Don Libes, O'Reilly and Associ-
ates, January 1995.
AUTHOR
Don Libes, National Institute of Standards and Technology
mkpasswd is in the public domain. NIST and I would appre-
ciate credit if this program or parts of it are used.
22 August 1994 2
bash-3.2#
Code:bash-3.2# man mkpasswd man: Formatting manual page... MKPASSWD(1) MKPASSWD(1)
Ich hab ja nix gegen ein solides Bashing, aber dann doch bitte nicht mit Spekulationen, die dann so als Expertenwissen aufgeblasen werden, ja?
# which mkpasswd
/usr/local/bin/mkpasswd
# pkg_info -W /usr/local/bin/mkpasswd
/usr/local/bin/mkpasswd was installed by package expect-5.43.0_3
Ich hab ja nix gegen ein solides Bashing, aber dann doch bitte nicht mit Spekulationen, die dann so als Expertenwissen aufgeblasen werden, ja?
Wenn man die Manpage aufmerksam liest, kann man darauf kommen, daß "mkpasswd" vermutlich irgendwas mit Expect zu tun haben muß. Auf meiner FreeBSD-Kiste habe ich "zufällig" Expect installiert und tatsächlich ist dieses ominöse "mkpasswd" vorhanden:
Code:# which mkpasswd /usr/local/bin/mkpasswd
Wir verwenden essentielle Cookies, damit diese Website funktioniert, und optionale Cookies, um den Komfort bei der Nutzung zu verbessern.
Siehe weitere Informationen und konfiguriere deine Einstellungen