On Wed, 2004-10-27 at 15:42 +1000, Michael Lake wrote: > Hi all > > Im a bit confused. Prob something simple. > > -rw-r--r-- 1 root root 1968 Oct 27 15:25 report > > As mikel I can remove the file report. > > rm: remove write-protected regular file `report'? y > done ! > > as its -rw-r--r-- I should not be able to write to it or remove it. > Im missing some basic understanding.
You are (but that's OK, I was too until someone told me). If you have write access to a directory, you can delete files in it. Whether you own them or not. The exception to this is 'sticky' directories, where you must be the owner of a file or root to delete it. OtherMike -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
