월간 인기 게시물

게시물 1,372건
   
selinux install
글쓴이 : 최고관리자 날짜 : 2023-03-17 (금) 08:19 조회 : 1179
글주소 :
                                
https://linuxconfig.org/how-to-disable-enable-selinux-on-ubuntu-20-04-focal-fossa-linux

# apt install ifupdown ifenslave
# apt install policycoreutils selinux-utils selinux-basics

root@ceph-sata-osd191:~# selinux-activate 
Activating SE Linux
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-144-generic
Found initrd image: /boot/initrd.img-5.4.0-144-generic
Found linux image: /boot/vmlinuz-5.4.0-124-generic
Found initrd image: /boot/initrd.img-5.4.0-124-generic
Found linux image: /boot/vmlinuz-5.4.0-42-generic
Found initrd image: /boot/initrd.img-5.4.0-42-generic
done
SE Linux is activated.  You may need to reboot now.


root@ceph-sata-osd191:~# sestatus 
SELinux status:                 disabled


root@ceph-sata-osd191:~# selinux-config-enforcing
Configured enforcing mode in /etc/selinux/config for the next boot.
This can be overridden by "enforcing=0" on the kernel command line.

root@ceph-sata-osd191:~# reboot 

semanage permissive -a zabbix_t
semanage permissive -a zabbix_agent_t
systemctl stop zabbix-agent.service
systemctl reset-failed zabbix-agent.service
systemctl start zabbix-agent.service
systemctl status zabbix-agent.service


/bin/Megaraid  >> sulinux polocy...

cp /bin/Megaraid /usr/sbin/
/usr/lib/nagios/plugins/check_megaraid_sas
  #my $megaclibin = '/bin/MegaCli';  # the full path to your MegaCli binary
  my $megaclibin = '/usr/sbin/MegaCli';  # the full path to your MegaCli binary
  #my $megacli = "sudo $megaclibin";      # how we actually call MegaCli
  my $megacli = "$megaclibin";      # how we actually call MegaCli


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.