ulimits and my limits
- May
- 24
- Posted by TKH Specialist
- Posted in Analysis, java, linux, Oracle, System Administration, System Resources
Even Linux systems have their limits! One of the systems I manage started throwing a “Too many open files” error in /var/log/messages. No error is good but this error is fixable. A little tuning and the error goes away. On this particular server we were running the Oracle Client and a Java Application, two very […]
read moreCorrect SSH Directory permissions
- Feb
- 27
- Posted by TKH Specialist
- Posted in ssh, System Administration
If you are trying to setup Public-Key Authentication and see this error in the logs: Authentication refused: bad ownership or modes for directory Your problem is related to permissions and/or ownership. The following commands on the user account you are trying to setup should fix the problem: chmod go-w ~/ chmod 700 ~/.ssh chmod 600 […]
read moreCopying a file to multiple locations
- Jan
- 17
- Posted by TKH Specialist
- Posted in bash, System Administration
I thought this was cool enough to share. I have not had to use it however so I doubt it is all that useful 😉 xargs -n 1 cp -v foo.txt<<<“/tmp1/ /tmp2/ /tmp3/” Here we are copying one file named foo.txt to multiple directories called /tmp/1/, /tmp/2/, and /tmp/3 using xargs. The xargs command construct […]
read moreDisable All User Login Access
- Jan
- 05
- Posted by TKH Specialist
- Posted in System Administration
There are occasions when you want to make sure users can not log into a system. This can be due to a maintenance period or I have used it as part of the process for retiring a system. It is simple enough but I thought it worth documenting for prosperity. # cd /{root of user […]
read moreYum Rollbacks
- Dec
- 21
- Posted by TKH Specialist
- Posted in System Administration
Very occasionally installing a package or updates with yum can have unexpected results. Fortunately yum provides the ability to roll back anything it installs. Here is an example of what these commands look like: # yum history Loaded plugins: package_upload, product-id, search-disabled-repos, security, subscription-manager ID | Login user | Date and time | Action(s) | […]
read moreSubnet Cheat Sheet
- Dec
- 14
- Posted by TKH Specialist
- Posted in networking, System Administration
Subnet Mask Cheat Sheet Posted here because 95% of the networks are the same and when I encounter a different one I have to think about it…not any more! See RFC 1878 for more details & information. Addresses Hosts Netmask Amount of a Class C /30 4 2 255.255.255.252 1/64 /29 8 6 255.255.255.248 1/32 […]
read moreyum Invalid System Credential error
- Sep
- 30
- Posted by TKH Specialist
- Posted in redhat, rhel 6, rhel 7, Satellite, System Administration
I ran across the following yum error after migrating a system from being a client of Satellite 5.6 to Satellite 6.1. First here is the error: # yum update Loaded plugins: package_upload, priorities, rhnplugin, search-disabled-repos, security, subscription-manager There was an error communicating with RHN. RHN Satellite or RHN Classic support will be disabled. Error Message: […]
read moreWorking with Repositories
- Sep
- 29
- Posted by TKH Specialist
- Posted in redhat, System Administration
Pulling packages from multiple sources can lead to problems. If you are running rhel and have epel enabled an update could inadvertently pull down a newer version from the wrong repository. This doesn’t always cause a problem, but it can. If you need to tfind all the epel packages on your system, here is how […]
read moreKerberizing RHEL Server
- Jun
- 13
- Posted by TKH Specialist
- Posted in RedHat 6, RedHat 7, System Administration
Notes from Plone… yum install krb5-workstation pam_krb5 -y # if krb5.conf is present we should get a fresh copy mv /etc/krb5.conf /etc/krb5.conf.bak yum reinstall krb5-libs -y sed -ie ‘s/example.com/FQDN/g’ /etc/krb5.conf sed -ie ‘s/EXAMPLE.COM/FQDN/g’ /etc/krb5.conf fqdn=`hostname –fqdn`; echo ” ank -randkey host/$fqdn@FQDN ktadd -k /etc/krb5.keytab host/$fqdn@FQDN “; — OR — kadmin netid/admin@FQDN addprinc -randkey host/$fqdn ktadd […]
read moreDon’t Panic Kernel!
- May
- 17
- Posted by TKH Specialist
- Posted in redhat, System Administration
You do your best to keep your systems running, but eventually something is going to happen (read you are going to do something) that leads to a Kernel Panic. Every System Administrator fears a Kernel Panic at some point in their career, but it is never a good idea to panic over one! Here are […]
read moreRecent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS