Error Code:
# tmux new -s 1
error creating /tmp/tmux-0 (Permission denied)
Solution:
# chown root:root /tmp/tmux-0
# tmux new -s 1
error creating /tmp/tmux-0 (Permission denied)
# chown root:root /tmp/tmux-0
> df -h
df: cannot read table of mounted file systems: Permission denied
If we are in this situation, after we use top command, we can see follow promotion
> top
Error, do this: mount -t proc proc /proc
# mount -t proc proc /proc
# chmod 644 resolv.conf
chmod: changing permissions of 'resolv.conf': Operation not permitted
This file is locked by chattr command
# chattr -i /etc/resolv.conf
# chmod 644 resolv.conf
# chattr +i /etc/resolv.conf
/dev/vg/lv_var /var xfs nodev,nosuid,noexec 0 0
/dev/vg/lv_var_log /var/log xfs nodev,nosuid,noexec,x-systemd.requires-mounts-for=/var 0 0
(
Add:
1) nodev parameter here means this directory can not be interpreted by devices or blocks
2) nosuid parameter here means no setuid files can be created in this directory
3) noexec parameter here means no files can be executed in this directory
4) x-systemd.requires-mounts-for=/var here parameter means /var/log directory can not be mounted until /var directory has been mounted
)
# vim /audit/plugins.d/syslog.conf
Modify part content as follow:
Modify part content as follow:
......
active = no
......
# service auditd restart
https://access.redhat.com/solutions/637863