We help IT Professionals succeed at work.

Can't remove empty dir permission denied

cipherlogic
cipherlogic asked
on
369 Views
Last Modified: 2014-09-12
Can't remove empty dir with rmdir. Permission denied. Can't enter the dir as root or usr...no such directory. Can however chown.
Any ideas how to remove without debugfs and removing inode?
SunOS
Thanks

------------------------
Comment
Watch Question

Gerwin JansenTopic Advisor
CERTIFIED EXPERT
Most Valuable Expert 2016

Commented:
Could be that some process has already tried deleting it and another process still has a lock. Is rebooting the machine an option?

Author

Commented:
Rebooting is not an option. I'll check process info later tonight.
Did you check to see if there is a process running that is accessing it?

ps -ef | grep <dirname>

Author

Commented:
Its never been used. It was this way upon creation.
ozo
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2015

Commented:
What does `stat` report about the dir?   Can you`mv` it?

Author

Commented:
This issue is in a complicated cluster config. Its not worth posting how its set up. Bottom line, one character off upstream was the issue.
Thanks for trying.

Commented:
ok.. let's begin with basic...

1. What is the permission of that directory ?
2. is that folder being used to mount any FS ?
3. if yes, then was that FS umounted properly.. i mean there must be no open files (lsof) or locks...
4. What kind of cluster config it is ? Is this directory is being configured as resources in cluster for any purpose ?

Let's try to resolve this ..  ;)

TY/SA

Author

Commented:
It's resolved, I figured it out last night.
Thanks though.

Author

Commented:
I've requested that this question be deleted for the following reason:

I figured it out myself. You can see this in the thread.

Commented:
Sharing is always beneficial.. If you can provide us details like what was the cause and how did you resolved..

Ty/SA
Sharing is caring ^_^
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for cipherlogic's comment #a40256313

for the following reason:

Because I figured out it was a typo.

Author

Commented:
Thanks for trying.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.