Archive for the ‘Scripts’ Category

SUID script requirements on AIX 5L and ksh93

Friday, November 30th, 2007

Requirements for a suid script include:

  • #! directing the KornShell be used
  • Executable by user, group, and other
  • No read permission
  • Add suid permission by chmod u+s on the file

Add a -p option to #! to increase security to force a separate process if one is not normally done.

Example:

#! /usr/bin/ksh -p

Source of this information:

http://www.ibm.com/developerworks/aix/library/au-kornshell93.html#n

Updated version of the flash64.sh script for Ubuntu 7.10 Gutsy Gibbon

Tuesday, October 2nd, 2007

A few months ago I released a script to install a 32-bit Adobe Flash plugin to a 64-bit Firefox, but it doesn’t seem to work in Gutsy beta. Here’s an updated one. I upgraded my laptop to Gutsy and used this one to get Flash working.

Edit: I did a complete reinstall later and learned that Gutsy knows how to set this up by itself. So there’s no need for this script anymore. And that is a very positive thing!

(more…)

Installing the 32-bit Adobe Flash plugin on a 64-bit Firefox in Feisty

Sunday, July 29th, 2007

Here’s a little script I made to make installing the 32-bit Flash plugin on a 64-bit Firefox easy. It was adapted from a script I found at the Ubuntu forums (here), but since that did not work right out of the box for me, I created one that does. The script uses the nspluginwrapper tool by Gwenolé Beauchesne.

(more…)

Starting and stopping IBM Websphere MQ on a Redhat Enterprise Linux box

Wednesday, July 25th, 2007

Here’s a little script I made for starting and stopping Websphere MQ on a RHEL 4. It is useful for a simple configuration with one Queue Manager and listener. Just put your queue manager name in the QMGR variable and the listener port to the PORT variable, and save the script to your /etc/init.d.

(more…)