Method One: Check the MD5 code of the file
>certUtil -hashfile <file> MD5
Or:
> Get-FileHash .\<file> -Algorithm MD5 | Format-List
Method Two: Check the SHA256 code of the file
>certUtil -hashfile <file> SHA256
>certUtil -hashfile <file> MD5
Or:
> Get-FileHash .\<file> -Algorithm MD5 | Format-List
>certUtil -hashfile <file> SHA256
# hostname -f
node0.eternalcenter.com
(补充:从这里可以看出本服务器已经使用了全域名 node1.eternalcenter.com)
# yum install sssd
# realm join eternalcenter.com -U eternalcenter
(补充:这里以通过认证域账号 eternalcenter 加入域 eternalcenter.com 为例)
# cat /var/log/sssd/sssd_ad001.siemens.net.log | tail -200
(
补充:当出现类似以下的信息时,则代表 Security Services Daemon (SSSD) 已设置成功
......
......All data has been sent!
......
......Sending nsupdate data complete
......
)
# vim /etc/sssd/sssd.conf
将部分内容修改如下:
......
access_provider = simple
simple_allow_users = acount1@eternalcenter.com, acount2@eternalcenter.com, acount3@eternalcenter.com
......
(补充:这里以只让域账号 acount1@eternalcenter.com、acount2@eternalcenter.com 和 acount3@eternalcenter.com 登录本服务器为例)
# systemctl restart sssd
# cat /etc/crypto-policies/back-ends/krb5.config
aes128-cts-hmac-sha256-128 aes256-cts-hmac-sha384-192
(补充:从这里的输出结果可以看出,目前使用的后台加密方式有 aes128-cts-hmac-sha256-128 aes256-cts-hmac-sha384-192)
# vi /etc/crypto-policies/back-ends/krb5.config
https://rockylinux.org/download
https://www.opensuse.org/
https://dev.mysql.com/downloads/mysql/
# yum repolist
# reposync -r <software source> <local directory>
# reposync -r base -p /tmp/repository/
# reposync -r extras -p /tmp/repository/
# reposync -r updates -p /tmp/repository/
# reposync -r epel -p /tmp/repository/
(补充:这里以同步软件源 base、extras、updates 和 epel 分到目录 /tmp/repository/、/tmp/repository/、/tmp/repository/、/tmp/repository/ 为例)
# cd /tmp/repository/base && createrepo ./
# cd /tmp/repository/extras && createrepo ./
# cd /tmp/repository/updates && createrepo ./
# cd /tmp/repository/epel && createrepo ./
(补充:这里以在目录 /tmp/repository/base、/tmp/repository/extras、/tmp/repository/updates 和 /tmp/repository/epel 里创建本地 YUM 源为例)
# reposync -r <software source> <local directory>
# reposync -r base -p /tmp/repository/
# reposync -r extras -p /tmp/repository/
# reposync -r updates -p /tmp/repository/
# reposync -r epel -p /tmp/repository/
(补充:这里以同步软件源 base、extras、updates 和 epel 分到目录 /tmp/repository/、/tmp/repository/、/tmp/repository/、/tmp/repository/ 为例)
# createrepo --update <local directory>
# createrepo --update /tmp/repository/base
# createrepo --update /tmp/repository/extras
# createrepo --update /tmp/repository/updates
# createrepo --update /tmp/repository/epel
(补充:这里以在目录 /tmp/repository/base、/tmp/repository/extras、/tmp/repository/updates 和 /tmp/repository/epel 里更新本地 YUM 源为例)