Advanced Search
Search Results
436 total results found
Leap Second
Problem My nasty java app is eating up all the CPU it can get. (Possibly sharing with something else equally unlikely that is eating the rest up -- in my case, milter-greylist.) This CPU consumption started at the moment of a leap second. Discussion There's a ...
Revert To eth Device Names
(2014-05-05) Problem: I have a piece of software that expects my first ethernet device to be called eth0 , not em1. Solution: This worked for me. add "biosdevname=0" to the kernel line in grub create a /etc/udev/rules.d/70-persistent-net.rules with these two ...
0x80070035 the network path was not found
(2013-06-03) Problem Trying to browse to a samba server by name from a Windows system yields the error 0x80070035: "the network path was not found" Probably, trying to connect to the same server by IP works. Solution The windows client is not using a standard ...
Samba full_audit
(2016-11-07) Problem I'd like to log activity that my samba server is doing. Solution CentOS 6 Samba includes the vfs_full_audit module which will do what you want. Add to /etc/samba/smb.conf: vfs objects = full_audit full_audit:prefix = %u|%I|%m|%S full_audit...
winbind
(2016-09-14) Configuring Winbind On A Fresh CentOS 6 Installation With this example, AD users in KLONDIKE can log into linux hosts with their AD credentials and will get the same UID and GID values on any linux host so configured. In this example: my domain i...
Ignore Host-ID
(2014-06-26) Problem I want to ignore the host-ID on connection for ssh. Yes, I know it is a dumb idea. Solution Inline, ignore this time only: ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user@system Permanent ignore examples, in ~/.ssh/co...
Remove Host ID
(2014-06-26) Problem Host-ID has changed and ssh is complaining about it. Solution Shell alias: # edit the ~/.ssh/known_hosts file to remove the passed line number. # source: [https://chainsawonatireswing.com/2012/04/06/an-easier-quicker-way-to-edit-the-known...
SElinux SSH Pubkey Bug
(14 February 2013) Problem CentOS 6 is not accepting pubkey login attempts. Solution SElinux has a bug which rejects the credentials when it is set to Enforcing mode. To fix, either disable SElinux; or apply the correct SElinux context as follows: [root@...
slow ssh connections
(26 October 2012) Problem When I ssh login to a CentOS 6 system, it always takes around 30 second to log in. Solution CentOS 6 has enabled the reverse-DNS name lookup of IPs by default. To disable in /etc/ssh/sshd_config , set: useDNS no
Install VMware Tools Yum Repository
(2014-01-14) Install VMware tools into a new Linux VM with a repository that will keep them updated: cd /etc/yum.repos.d wget https://web.archive.org/web/20240227060040/http://yum.gridway.net/yum/vmware-tools/yum.repos.d/vmware-tools.repo cd yum -y ins...
VM Optimizations
(2014-01-14) This is all heavily based on The Lone Sysadmin and I can't really claim credit for any of it. Elevator Add to /etc/grub.conf kernel line(s): elevator=noop Disk Mo...
ypbind won't bind to anything
(2014-06-16) Problem I have a CentOS 6 NIS master server that won't ypbind to anything. I have a seemingly identical CentOS6 NIS slave server that will ypbind to the master or to itself, which satisfies me that the problem lies with the client, not the server....
Active Directory with SSSD
(2021-02-03) Rough Notes install realmd # realm discover # realm join zoneName -U adminUser in /etc/sssd/sssd.conf , comment out use_fully_qualified_names = True install nfs-utils in /etc/nfsmoutn.conf , add: Defaultvers=3 Nfsvers=3 systemctl e...
arp
(2016-11-22) Problem arp -a is too brief. In keeping with the new trend of banging in long command names, we need a suitable long command that does the same thing. Solution # ip neighbour show +1 for accepting Canadian spelling. Other useful things that you c...
Auto SSH Agent
(2019-09-04) Notes that probably won't make any sense to anyone other than myself. This is borderline incoherent and probably mostly wrong ~/bin/agent, everywhere: This is a generic script for launching the agent on the keyhost. I'm using kageant on Windows ri...
DSA SSH Hostkeys
(2017-05-25) Problem I have a stone-age host monitor thing that is complaining that it can't find agreeable SSH host keys from my CentOS 7 server. Turns out it requires DSA host keys and won't use the other host keys that are available. CentOS 7 by default doe...
Unban IP Address
(2017-05-06) Solution # fail2ban-client set sshd unbanip a.b.c.d
Get Sendmail To Listen On 25, 425, and 587
(2017-05-03) Problem I want one sendmail.cf to control access to port 25 (no auth, access rules only), 425 (SSL-SMTP-AUTH), and 587 (TLS-SMTP-AUTH). Solution These are the changes I made to a stock sendmail.mc file: TRUST_AUTH_MECH(`LOGIN PLAIN')dnl define(`co...