Home arrow Journal arrow Resetting flags for a file or directory with chflags
Resetting flags for a file or directory with chflags PDF
Saturday, 20 March 2010
Sometimes you are not able to delete a file or a directory even if you are the owner of that file. Or simetimes as root you are not able to delete a file or dir. Show what to do?

Use chflags to remove all flags that were set to that file:

chflags 0 filename

For example you cannot delete /var/empty file:

chflag 0 /var/empty
 
< Prev   Next >

Other BSD Systems

OpenBSD

Misc

Solaris

Polls

Best BSD firewall?