On Wed, 2009-09-02 at 12:14 +0300, Aleksey Kunitskiy wrote:
> I have directory on the filesystem with wrong GID:
> # stat props
> File: `props'
> Size: 1 Blocks: 0 IO Block: 4096 directory
> Device: fd03h/64771d Inode: 535544 Links: 2
> Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: (134217728/
> fsck.jfs didn't fix this problem and I can't delete or move this
> rm: cannot remove directory `props': Permission denied
> What should I do to fix this?
What are the permissions on the containing directory? You need write
permission in the parent in order to delete or move a file or
Also, the root user should be able to change the group with the chown or
If you can't do that, it's possible that the immutable bit is set,
either in props or the parent directory. You can check it with lsattr
and fix it with chattr -i.
IBM Linux Technology Center