内容一:基础软件源
rhel-8-for-x86_64-baseos-rpms
rhel-8-for-x86_64-appstream-rpms
内容二:Red Hat Satellite Tool 软件源
satellite-tools-6.10-for-rhel-8-x86_64-rpms
(补充:这里以 Red Hat Satellite Tool 6.10 软件源为例)
rhel-8-for-x86_64-baseos-rpms
rhel-8-for-x86_64-appstream-rpms
satellite-tools-6.10-for-rhel-8-x86_64-rpms
(补充:这里以 Red Hat Satellite Tool 6.10 软件源为例)
94.140.14.14
94.140.14.15
94.140.15.15
94.140.15.16
1.0.0.1
1.0.0.2
1.0.0.3
1.1.1.1
1.1.1.2
1.1.1.3
8.20.247.20
8.26.56.26
84.200.69.80
84.200.70.40
216.146.35.35
216.146.36.36
209.244.0.3
209.244.0.4
156.154.70.1
156.154.71.1
37.235.1.174
37.235.1.177
8.8.4.4
8.8.8.8
208.67.220.220
208.67.222.222
195.46.39.39
195.46.39.40
199.85.126.10
199.85.137.10
hash:/etc/aliases is unavailable.open database /etc/aliases.db
或者:
error: open database /etc/aliases.db: No such file or directory
# newaliases
Can't get available migrations from server: SUSE::Connect::ApiError: Multiple base products found: ......
当上一次升级失败或者升级回滚了以后可能会报此类错误
# SUSEConnect –rollback
(步骤略)
(步骤略)
(步骤略)
https://www.suse.com/support/kb/doc/?id=000019523
在排除 SFTP 登录记录只监控普通登录记录前要先开启 SFTP 日志:
作者:朱明宇
名称:监控普通登录记录 (排除 SFTP 登录记录只监控普通登录记录)
作用:监控普通登录记录 (排除 SFTP 登录记录只监控普通登录记录)
1. 在此脚本的分割线内写入相应的内容
2. 给此脚本添加执行权限
3. 执行此脚本
4. 普通登录记录会同时记录在系统日志和 $logfile 里
1. logfile=logfile.txt #用户保存记录的文件
2. prompt=”and no sftp info” #记录里普通登录记录的文件
#!/bin/bash
####################### Separator ########################
logfile=logfile.txt
prompt="and no sftp info"
####################### Separator ########################
checktime=`date +%Y-%m-%dT%H -d "-1 day"`
for i in `cat -n /var/log/messages | grep $check_time | grep 'Started Session' | grep -v 'root' | awk '{print $1}'`
do
line=`sed -n $[i]p /var/log/messages`
time=`echo $line | awk '{print $1}'`
session=`echo $line | awk '{print $6}'`
user=`echo $line | awk '{print $9}'`
user=${user%.}
message="ACCESS CHECK LOG: Time:$time Session:$session $user has accessed `hostname`, $prompt"
let sftpline=i+3
sed -n $[sftpline]p /var/log/messages | grep sftp-server &> /dev/null
if [ $? -ne 0 ];then
echo $message
echo $message >> $logfile.txt
logger $message
fi
echo
done