On Wed, 2009-09-02 at 12:14 +0300, Aleksey Kunitskiy wrote:
> Hi,
> 
> 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/
> UNKNOWN)
> 
> fsck.jfs didn't fix this problem and I can't delete or move this
> directory:
> 
> 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
subdirectory.

Also, the root user should be able to change the group with the chown or
chgrp commands.

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.
-- 
David Kleikamp
IBM Linux Technology Center


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to