Передача пароля в SSH для копирования через rsync
1 2 3 |
sshpass -p "PASSWORD" rsync --progress -e "ssh -p23" --recursive /LOACALDIR USERNAME@backup.server.local:/REMOTEDIR |
1 2 3 |
sshpass -p "PASSWORD" rsync --progress -e "ssh -p23" --recursive /LOACALDIR USERNAME@backup.server.local:/REMOTEDIR |
Очень часто, долго завершается терминальная сессия. Виноват какой то процесс, долго выполняющий свое закрытие. Чаще всего это — SplWOW64.exe Для его принудительного, быстрого завершения, необходимо добавить ветку реестра
1 2 3 4 |
"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\SysProcs" DWORD: SPLWOW64.EXE = 0 |
Таким же способом добавляется любая программа, которая долго выполняет закрытие.
Исправляем ошибки
1 2 3 4 5 6 7 8 9 |
lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) lda(opendmarc): Fatal: setgid(2000(vmail) from mail_gid setting) failed with euid=489(opendmarc), gid=490(opendmarc), egid=490(opendmarc): Operation not permitted (This binary should probably be called with process group set to 2000(vmail) instead of 490(opendmarc)) |
Или
1 2 3 4 5 6 7 |
lda(opendmarc): Fatal: setuid(2000(vmail) from mail_uid setting) failed with euid=489(opendmarc): Operation not permitted (This binary should probably be called with process user set to 2000(vmail) instead of 489(opendmarc)) lda(opendmarc): Fatal: setuid(2000(vmail) from mail_uid setting) failed with euid=489(opendmarc): Operation not permitted (This binary should probably be called with process user set to 2000(vmail) instead of 489(opendmarc)) lda(opendmarc): Fatal: setuid(2000(vmail) from mail_uid setting) failed with euid=489(opendmarc): Operation not permitted (This binary should probably be called with process user set to 2000(vmail) instead of 489(opendmarc)) lda(opendmarc): Fatal: setuid(2000(vmail) from mail_uid setting) failed with euid=489(opendmarc): Operation not permitted (This binary should probably be called with process user set to 2000(vmail) instead of 489(opendmarc)) lda(opendmarc): Fatal: setuid(2000(vmail) from mail_uid setting) failed with euid=489(opendmarc): Operation not permitted (This binary should probably be called with process user set to 2000(vmail) instead of 489(opendmarc)) |
В конфигурационном файле /etc/opendmarc.conf зададим группу и пользователя, от которого будет производиться запуск — UserID vmail:vmail
Носитель определился как SDE
1 2 3 4 5 6 |
cd /home/kost wget http://mirror.docker.ru/centos/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso dd if=/home/kost/CentOS-7-x86_64-Minimal-1810.iso of=/dev/sde bs=2048 sync |