Some users insist on using bash. This is a good shell, but not as good
as zsh. But, I do want them to be able to use the per directory
umask as well as all the zsh users.
So I started digging, as the bash shell does not support a chpwd
hook.
This is what I came up with:
chpwd()
{ # Set the initial umask
case "${PWD}/"
in
/etc/puppet/*)
um=$(umask)
umask 007
;;
*)
[[ x"${um}" != x"" ]] && umask ${um}
;;
esac
}
function cd()
{
builtin cd "${@}"
chpwd
}
[Read More]umask per directory
Posted on December 6, 2010
(Last modified on August 22, 2024)
| 2 minutes
| 320 words
| Ton Kersten
I’ve been working with Puppet some time now, and we are configuring our
way through a lot of hosts, with 6 persons, all working in the same
Puppet master directory.
This should work fine with all UNIX/Linux groups and setgid
directories. But simple problem arose with the git version control
stuff.
Once in a while the complete git repo was destroyed and quite a lot of
searching revealed the reason why.
[Read More]Compiling OpenSSL and OpenSSH
Posted on August 12, 2010
(Last modified on August 22, 2024)
| 2 minutes
| 363 words
| Ton Kersten
My server at home runs CentOS 5 and this has OpenSSH version 4.3.
Running updates doesn’t update this version, because RedHat keeps the
version number stable.
But I wanted a newer OpenSSH because of some nice
new features. But when I do compile a new version I’m still stuck with
old OpenSSL, and that’s not what I want.
Well, you can guess it by now, this is what I did.
I first got the newest version of OpenSSL and compiled it with
[Read More]Back to m0n0wall
Posted on August 10, 2010
(Last modified on August 22, 2024)
| 2 minutes
| 246 words
| Ton Kersten
But a problem with PPTP tunneling made me think again. Was pfSense the
way to go?
Well, it wasn’t. When I was trying to get IPv6 up and running it turned
out that pfSense doesn’t support IPv6 out of the box. And m0n0wall does.
There where some answers on the internet, but I was not willing to hack
the pfSense box if that was not needed. And the pfSense website states
that IPv6 support will come after the release of 2.0. I’m not going to
hold my breath that long. And the PPTP tunneling problem can only be
solved when you have a dual external IP address. My provider won’t give
me a static one, so two statics is completely out of the question.
[Read More]My new Internet connection
Posted on August 2, 2010
(Last modified on August 22, 2024)
| 1 minutes
| 68 words
| Ton Kersten
About a month or two ago I was contacted by my ISP asking if I would
like a lot faster internet connection and a lower price. Well, you have
to be nuts to deny such an offer, so I decided to comply.
About a week later the new internet modem showed up and I connected
everything up.
Running speedtest made me very happy.
SysAdmin Day
Posted on July 30, 2010
(Last modified on August 22, 2024)
| 1 minutes
| 29 words
| Ton Kersten
Hmm, VMware and 4k disk blocks
Posted on July 14, 2009
(Last modified on August 22, 2024)
| 2 minutes
| 223 words
| Ton Kersten
At work we now have a very nice SAN with two machines running VMware
vSphere. I did try to add fibre storage to the VMware machines and that
didn’t work. I did get a lot of errors and unknown problems. Even Google
never heard of them. One of those was ~ Error during the configuration
of the host: Failed to get disk partition information ~
Googling for this and more generic terms pointed me to a hint to
partition the disk on the VMware server itself and then create a VMFS
filesystem onto it. Well, that should be easy enough.
[Read More]