Author Archives: admin

How To Prevent A Python Script From Running As Root

At or near the top of your app, before it executes anything sensitive, place the following code: if os.geteuid()==0:     print “Cannot run as root!”     sys.exit(1) How to do this in PERL: …how-to-prevent-a-perl-script-from-running-as-root… Did you find this post useful or have … Continue reading

Posted in How Tos, Programming, python | Leave a comment

Read a Changelog From an RPM File

The internet is full of tips on how to read the changelog from an RPM package you have installed. How do you read the changelog from a .rpm file before you install it? The answer is amazingly simple: rpm -q … Continue reading

Posted in How Tos, linux, rpm | Leave a comment

OpenSUSE 11 and SLES 11 Enable Multiple Kernel Support for zypper

By default, when zypper upgrades your kernel, it treats the package like any other package. The old kernel is removed and the new kernel is installed. There are three ways to get your old kernel back (or keep it). You … Continue reading

Posted in How Tos, linux, OpenSUSE, SLES, zypper | Leave a comment