Permission denied when rm or chmod

I got "Permission denied" error message when I rm or chmod a file.
I'm the owner of the file "lice_20091123.tar".
How can I solve this matter?

lice@appl:/midasapp/lice> whoami
lice
lice@appl:/midasapp/lice> who am i
guest pts/12 Nov 23 19:09 (ooo.ooo.ooo.oo)
lice@appl:/midasapp/lice> id lice
uid=204(lice) gid=1(staff)

lice@appl:/midasapp/lice> ls -al
drwxrwxr-x 12 lice staff 4096 Nov 23 19:10 .
drwxrwxr-x 17 was staff 45056 Oct 19 17:27 ..
-rw-r--r-- 1 lice staff 175339520 Nov 23 19:10 lice_20091123.tar

lice@appl:/midasapp/lice> rm lice_20091123.tar
rm: lice_20091123.tar not removed.
Permission denied
lice@appl:/midasapp/lice>

lice@appl:/midasapp/lice> chmod 755 lice_20091123.tar
chmod: lice_20091123.tar: Permission denied
lice@appl:/midasapp/lice>

Hi,

you need write permissions to the directory to remove a file or change permissions.

Kind regards
zxmaus

I have W permission alread.

see above
lice@appl:/midasapp/lice> ls -al
drwxrwxr-x 12 lice staff 4096 Nov 23 19:10 .
drwxrwxr-x 17 was staff 45056 Oct 19 17:27 ..

oops apologies its early for me - of course you're right :slight_smile:

maybe extended attributes set (check with ls -U) or problems with your userid ... I have seen what you're experiencing when copying a file from a box with the same user having another userid ... or when the directory was exported. If you're running AIX 6.1 with RBAC maybe this is preventing you from doing what you want.

Kind regards
zxmaus