Solved

Can't delete a directory

Posted on 2004-09-02
3
415 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…

691 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