LINUX.ORG.RU

А зачем? Звёздочек нет именно из-за секурности, чтобы не узнать длину пароля.

Deleted
()
Ответ на: комментарий от Deleted

>А зачем? Звёздочек нет именно из-за секурности, чтобы не узнать длину пароля.

Я тебе и так скажу - 8 знаков (буквы, цифры, знаки), 195.62.150.188, порт ssh открыт, юзеры guest, mikhail, root с одинаковым паролем. Я в KLAX увидел, что при логине появляются звёздочки, мне это очень понравилось.

mikhail
() автор топика

/etc/login.defs:

#
# When prompting for password without echo, getpass() can optionally
# display a random number (in the range 1 to GETPASS_ASTERISKS) of '*'
# characters for each character typed.  This feature is designed to
# confuse people looking over your shoulder when you enter a password :-).
# Also, the new getpass() accepts both Backspace (8) and Delete (127)
# keys to delete previous character (to cope with different terminal
# types), Control-U to delete all characters, and beeps when there are
# no more characters to delete, or too many characters entered.
#
# Setting GETPASS_ASTERISKS to 1 results in more traditional behaviour -
# exactly one '*' displayed for each character typed.
#
# Setting GETPASS_ASTERISKS to 0 disables the '*' characters (Backspace,
# Delete, Control-U and beep continue to work as described above).
#
# Setting GETPASS_ASTERISKS to -1 reverts to the traditional getpass()
# without any new features.  This is the default.
#
#GETPASS_ASTERISKS 1


но я бы не рекомендовал...

Zulu ★★☆☆
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.