Приоритет аутентификации

С оболочкой zsh:

zmodload zsh/datetime
rel_date=2018OCT28
strftime -rs d %Y%b%d.%H $rel_date.12 &&
  strftime -s two_days_before %Y-%m-%d $((d - 86400*2)) || exit

echo $two_days_before
0
28.01.2021, 13:56
1 ответ

См.man 5 nsswitch.conf(жирным шрифтом):

The first column is the database name. The remaining columns specify:

  • One or more service specifications, for example, "files", "db", or "nis". The order of the services on the line determines the order in which those services will be queried, in turn, until a result is found.

И ваш случай, files, имеет приоритет, как и должно быть -обычно вы не хотите, чтобы запись LDAP, скажем, root, переопределяла локальные записи.

0
18.03.2021, 22:34

Теги

Похожие вопросы