Strange things in Solaris 10 (bug?)


Today i have one strange things, which causes “rm -rf ” does not work any more.

$ uname -a
SunOS cashaps2 5.10 Generic_118833-24 sun4u sparc
SUNW,Sun-Fire-V440


$ pwd
/11i/appl/fnd/11.5.0/lib
$ rm -rf temp
$ ls -ld temp
drwxrwxrwx 2 apptest1 dba 512 Jul 9 08:52
temp
$ /usr/xpg4/bin/rm -rf temp
rm: cannot determine if this is an ancestor of the current working directory temp

The solution to fix this issue is also unreasonable.

Before fix:

root@cashaps2 # ls -l /11i
total 1042
drwxr-x— 2 root root 512 Jun 29 12:08 11i


Apply the fix :

root@cashaps2 # umount /11i
root@cashaps2 # chmod 777 11i
root@cashaps2 # ls -l /11i
drwxrwxrwx 2 root root 512 Jun 29 12:08 11i

After change the mount point permission to 777, this problem disappeared.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.