Search found 43 matches

by Thraex
2020/09/11 17:30:56
Forum: CentOS 7 - General Support
Topic: how i add route
Replies: 10
Views: 251

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: 141

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: 345

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: 198

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: 462

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: 578

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
by Thraex
2020/05/29 16:52:14
Forum: CentOS 8 - General Support
Topic: [Solved] Can't put anything on my CentOS 8 GNOME desktop?
Replies: 6
Views: 879

Re: Can't put anything on my CentOS 8 GNOME desktop?

Pretty much how GNOME functions. On login when you are prompted for you password, trying clicking the gear next to "Sign In" and select Gnome Classic. I haven't used 8 too much but I'm pretty sure that version works similar to gnome in 7
by Thraex
2020/05/20 14:48:16
Forum: CentOS 7 - Software Support
Topic: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.
Replies: 5
Views: 454

Re: Samba with GlusterFS - fails to create/copy subfolder or any other type of file in the main folder.

In my smb.conf that shares 2 gluster volumes I have the path equal to where they are mounted instead of just path = /
Maybe that's your issue?
by Thraex
2020/05/11 14:08:59
Forum: CentOS 7 - Security Support
Topic: Rich rule is added with "success" but does not shown eventually in the configuration
Replies: 2
Views: 234

Re: Rich rule is added with "success" but does not shown eventually in the configuration

Only the last of your firewall-cmd commands has the --permanent option. If you don't specify this, then the rule will go away when you run firewall-cmd --reload or systemctl restart firewalld. Is that what you're running into?
by Thraex
2020/04/27 17:41:07
Forum: CentOS 7 - General Support
Topic: fstab syntax
Replies: 7
Views: 160

Re: fstab syntax

defaluts should be defaults and the contents of credentials=/etc/security/fstab.EAP should be:
user=username
password=password

Go to advanced search