要恢复Ubuntu中被SELinux修改的设置,可尝试以下方法:
sudo restorecon -Rv /
/etc/selinux/config
SELINUX
enforcing
disabled