i am trying to remove a directory using rm -rf command but its not getting removed.. it doesnt throw any error also.. i am logging as the owner of the dir and removing it but still no luck.. i am able remove a file but not a directory.
rm is confused as to whether you are removing a directory that is part of the present working directory. check to see if there is a link or something that is causing this.
That's strange. Could really use some details about the environment you're doing this on though..
What filesystem type is it that you see this behavior on?
Does it behave that way in other parts of the system or with other users, or just in the directory structure which you're working, or as a particular user?
solaris 10 .. OS is installed with zfs file system.
but the mount points are vxfs . the issue is with 4 new mount points that are created with 770 permissions..
it works fine for root user.. but for other users including the mount point owner has the issue.
files are removable but not directory.. and to be noted.. an empty dir can which doesnt have any sub directory in it can be removed but if the dir contains some sub dir it cannot be removed.
Just do this google search and it's the top link: probably rm rf solaris
I wonder if the umask in your /etc/profile is something more restrictive than default? It would be interesting to log in the owner, open up his umask, move the directory, move it back, then run the rm -rf command again.