У меня есть команда, которую мне нужно запустить при запуске, но она требует, чтобы я ввел пароль несколько раз, и я не знаю, как это сделать:
$ systemctl disable systemd-timesyncd && systemctl stop systemd-timesyncd && systemctl enable ntpd && systemctl start ntpd
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
Removed /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service.
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to stop 'systemd-timesyncd.service'.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-unit-files ===
Authentication is required to manage system service or unit files.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.reload-daemon ===
Authentication is required to reload the systemd state.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'ntpd.service'.
Authenticating as: benja
Password:
==== AUTHENTICATION COMPLETE ===
Возможно ли это? Будем признательны за любые предложения.