Is it possible to unset or change a
readonly variable in Korn Shell? I am using AIX 5.
Not that I know of. At least, the obvious ways won't work: you can't
Technically, you can do this from outside: connect to the ksh process with a debugger and flip the bit in memory where the ksh process stores the information that the variable is read-only. So a readonly variable is not an absolute security feature.
If you need to set a variable to a different value before launching a command, do it through
Alternatively, make the variable read-only in a restricted scope (in a function).