我已经在/etc/selinux/can中修改了“SELINUX=enforcing”,但是在重新启动机器之后,我无法对机器进行ssh操作。提示/bin/bash:拒绝权限
发布于 2019-10-18 06:06:51
当您第一次编辑SELINUX或在不同类型的策略之间切换时,您需要重新命名文件系统。以下步骤将自动完成重命名过程,如程序所示:
reboot kernel=... UTF-8 rd.break mount | grep sysroot
=/dev/mapper/rhel-root on /sysroot type xfs (ro,relatime,attr2,inode64,noquota) mount -o remount,rw /sysroot
mount | grep sysroot
=/dev/mapper/rhel-root on /sysroot type xfs (rw,relatime,attr2,inode64,noquota) chroot /sysroot
(new prompt) sh-4.4# touch /.autorelabel exit
logout or reboot (it will take time)https://stackoverflow.com/questions/55739224
复制相似问题