Solved

Can't delete a directory

Posted on 2004-09-02
3
398 Views
Last Modified: 2013-12-27
As root I am unable to delete a empty directory, on solaris 8.
0
Comment
Question by:tuckcorp
3 Comments
 
LVL 48

Expert Comment

by:Tintin
Comment Utility
What command are you using?
What error message are you getting?
Is the directory NFS mounted?
0
 
LVL 20

Expert Comment

by:tfewster
Comment Utility
(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
Comment Utility
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now