Solved

Can't delete a directory

Posted on 2004-09-02
3
400 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
ID: 11969174
What command are you using?
What error message are you getting?
Is the directory NFS mounted?
0
 
LVL 20

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

867 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

15 Experts available now in Live!

Get 1:1 Help Now