Search found 47 matches

by Thraex
2021/01/07 21:19:39
Forum: CentOS 8 - General Support
Topic: UEFI with kickstart
Replies: 8
Views: 673

Re: UEFI with kickstart

I did this using xorriso. In the kickstart, I had to include a %pre section that checks if the system is uefi and add a /boot/efi partition if it is. The labelling is also very picky and it caused me a bit of a headache figuring out so make sure the version you're using is 8-1-1911. %pre check is: i...
by Thraex
2020/12/08 16:13:04
Forum: CentOS Social
Topic: CentOS HAS BEEN CANCELLED !!!
Replies: 14
Views: 2342

Re: CentOS HAS BEEN CANCELLED !!!

RedHat still has to release their source though right? Wonder if another group will pick it up to keep a functional equivalent of the current RHEL alive.
by Thraex
2020/11/12 20:24:37
Forum: CentOS 7 - General Support
Topic: [SOLVED] - Binary content after aide --check to mail
Replies: 9
Views: 157

Re: Binary content after aide --check to mail

I use almost the exact same line (yay STIGs) in my systems and I get the aide --check results in root's mail. My crontab has:

00 2 * * * root /usr/sbin/aide --check | /bin/mail -s "$(hostname) - AIDE Integrity Check" root@localhost
by Thraex
2020/10/30 14:10:13
Forum: CentOS 7 - General Support
Topic: How to run a script on CentOS Startup?
Replies: 15
Views: 405

Re: How to run a script on CentOS Startup?

I advise against this, but why not set SELinux to permissive all the time instead of setting SELinux to permissive through a command every boot?
by Thraex
2020/09/11 17:30:56
Forum: CentOS 7 - General Support
Topic: how i add route
Replies: 10
Views: 429

Re: how i add route

I usually use nmcli to add routes. Command would be: nmcli c m NIC +ipv4.routes "destination/subnet gateway" example: nmcli c m ens33 +ipv4.routes "192.168.10.0/24 192.168.1.254" A few notes, if you're routing to a specific address you don't need to add the subnet and if you want to replace routes r...
by Thraex
2020/08/06 12:07:56
Forum: CentOS 8 - General Support
Topic: How to check errors on boot?
Replies: 2
Views: 153

Re: How to check errors on boot?

I usually check dmesg and logs in /var/log/, or run journalctl with various flags. Mostly I start with what changed before the system booted to emergency so I have a general idea of where to look though.
by Thraex
2020/07/15 17:32:42
Forum: CentOS 7 - Security Support
Topic: [Solved] Selinux - my arch enemy - contexts
Replies: 4
Views: 400

Re: Selinux - my arch enemy - contexts

I would try to set the shared directory's type to public_content_t with semanage fcontext -at public_content_t "/directory(/.*)?" That regex applies that type to the directory and everything in it. Then run restorecon -vR /directory to apply the new type. That context will work for exports using nfs...
by Thraex
2020/07/09 12:04:01
Forum: CentOS 7 - General Support
Topic: Partitioning mistake fix forgot to add /home
Replies: 5
Views: 241

Re: Partitioning mistake fix forgot to add /home

For filesystems, I usually stick with ext4 since they can grow/shrink as needed. As for your bash prompt, that was most likely set in your user's .bashrc file in /home/username/.bashrc and maybe wasn't backed up?
by Thraex
2020/06/08 12:42:25
Forum: CentOS 7 - General Support
Topic: How to insert # with sed
Replies: 7
Views: 510

Re: How to insert # with sed

Should be something like:

sed -i '/^copy_old_man/s//#&/' /path/to/file

I'd test with sed -e first though to be safe.
by Thraex
2020/06/05 11:49:36
Forum: CentOS 8 - Networking Support
Topic: Newbie question: Samba and access rights?
Replies: 7
Views: 697

Re: Newbie question: Samba and access rights?

Just a heads up, chcon label changes do not survive a system relabel, to make the change permanent you'll want to use semanage. Command would be: semanage fcontext -at samba_share_t "/nwmax(/.*)?" This gives the directory and anything inside it the samba SELinux type

Go to advanced search