Tuesday, December 29, 2009

little s and upper case S

It is not about little s and big s of Taiwan actress. It is about setuid bit.

s: set when executable
S: set when not executable

hmc@hmc-desktop:~$ touch abc.txt
hmc@hmc-desktop:~$ chmod 644 abc.txt
hmc@hmc-desktop:~$ ls -l abc.txt
-rw-r--r-- 1 hmc hmc 0 2009-12-29 22:40 abc.txt
hmc@hmc-desktop:~$ chmod 4644 abc.txt
hmc@hmc-desktop:~$ ls -l abc.txt
-rwSr--r-- 1 hmc hmc 0 2009-12-29 22:40 abc.txt


hmc@hmc-desktop:~$ touch abcx.txt
hmc@hmc-desktop:~$ chmod 744 abcx.txt
hmc@hmc-desktop:~$ ls -l abcx.txt
-rwxr--r-- 1 hmc hmc 0 2009-12-29 22:40 abcx.txt
hmc@hmc-desktop:~$ chmod 4744 abcx.txt
hmc@hmc-desktop:~$ ls -l abcx.txt
-rwsr--r-- 1 hmc hmc 0 2009-12-29 22:40 abcx.txt

more to read
http://www.zzee.com/solutions/unix-permissions.shtml#setuid

Monday, December 14, 2009

firefox flash on ubuntu 9.10

headache problem comes back again after upgrade to 9.10.

no solution with amd64, have to choose 32 bit again.

download 3.5.5 from mozilla.org

download install_flash_player_10_linux.tar.gz from adobe.com , then unzip it to get libflashplayer.so

move it to /usr/lib/mozilla/plugins

Now I can happy with facebook.com and qzone.qq.com

Wednesday, December 09, 2009

OPatch: Can't locate loadable object for module POSIX in @INC

alternative solution can be found from http://my.opera.com/onyxluo/blog/opatch

My solution is :

perl $ORACLE_HOME/OPatch/opatch.pl lsinventory|apply

Interim Patch is holding the lock from xxxxxxx

Opatch failed with the following message:

Problems with the lock file
Lock file exists, details are:
Interim Patch is holding the lock from xxxxxxx,
probably due to previous unsuccessful operation

ERROR: OPatch failed during pre-reqs check

Opatch creates patch_locked in $ORACLE_HOME/.patch_storage during running of patch. If for some reason opatch run was interrupted or canceled , this file may not be removed. As the result, further opatch run can find this patch and will fail because of this file.

To resolve, delete this file.