Solved

Can't delete a directory

Posted on 2004-09-02
3
414 Views
Last Modified: 2013-12-27
As root I am unable to delete a empty directory, on solaris 8.
0
Comment
Question by:tuckcorp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 48

Expert Comment

by:Tintin
ID: 11969174
What command are you using?
What error message are you getting?
Is the directory NFS mounted?
0
 
LVL 21

Expert Comment

by:tfewster
ID: 11969253
(Additional info)

Question Title: Can't delete a directory
asked by tuckcorp on 09/03/2004 12:33AM BST

Hi I work on Solaris 8 and I can't delete a directory. The directory is empty. We have used lsof /directory put could not find any process that had the directory. We also ran a fuser against it and could not find anything attached.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 250 total points
ID: 11969902
As root you should be able delete any local dir. For NFS mount it depends on how
the filesystem is exported, the root for NFS client might not have permissions to delete
any file for the NFS mount file system (it may be READ only).

If you have trouble with a local dir. try use Solaris Sofware CD to boot up the system
in single user mode, run fsck to fix the filesystem, eg, if the dir is in /dev/rdsk/c0t0d0s0:

fsck -y /dev/rdsk/c0t0d0s0

then boot up the system from HD and try again.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Remote Change Dates on AIX Automation 7 84
Oracle Finace 3 100
bash while loop reading input from data section in script 7 72
Adding a continue option in a script 9 75
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question