我希望能够通过IPMI /串行控制台ttyS1login到我的服务器。
由于IPMI已经要求input密码,因此根密码通过/etc/issue打印到控制台。
通过Ubuntu服务器16.04 rootlogin完美工作。 在CentOS / vzlinux我不能得到它的工作。
我做了以下几点:
echo ttyS1 >> /etc/securetty cat >> /etc/security/access.conf << EOF + root : cron crond tty0 tty1 tty2 tty3 tty4 tty5 tty6 ttyS0 ttyS1 - root : ALL EOF
现在问题在于pamconfiguration。 盖蒂将崩溃帕姆错误:
我认为这些是pamconfiguration的违规行:
/etc/pam.d/*-ac文件是自动生成的,不应该被覆盖。
我应该如何解决这个问题的“正确”的方式?
我怎样才能使改变只影响通过ttyS1login?
我的问题碰巧是一个系统问题。 出于某种原因,systemd没有生成“dev-ttyS1.device”单元,因此停止getty( Unit [email protected] is bound to inactive unit dev-ttyS1.device. Stopping, too )
这固定我的getty问题:
srvfile="/etc/systemd/system/[email protected]" echo -n "# This file has been created because of a bug in systemd\n\n" > $srvfile cat /lib/systemd/system/[email protected] >> $srvfile sed -i 's/dev-%i\.device //g' $srvfile sed -i 's/dev-%i\.device//g' $srvfile