You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
750 B

{% calculate path='/usr/sbin', chmod='755' %}
#!/bin/sh
# Updating of domain users nss-cache.
# The NSS-cache is used for fix resume from suspend mode of domain users.
#
#?os_install_locale_language==ru#
# Обновление кэша пользователей домена.
# Кэширование используется для поддержки спящего режима доменных машин.
# Обновление вызывается из cron.hourly, при входе в сеанс, при разблокировке.
#?os_install_locale_language#
# invalidate passwd and group caches
nscd -i passwd
nscd -i group
# get information about all users
getent passwd | cut -d: -f1 |
while read user;do
id $user &>/dev/null
done