D'oh! I missed the
-w option. Good thing you found it :)
-U didn't work because the first one out has the readonly attribute set, so it can't be unlinked.
OK, something is amiss here. I sometimes get confused about this issue, which is why I made the following notes for myself:
# a file and its filename are different!
# permissions are on files, not filenames => control of filenames is l
+eft up to the directory
# directories contain filenames (not files!), that themselves refer to
+ files
file readable # may examine file contents
file writable # may alter file contents
file xecutable # may run file contents
directory readable # may examine directory contents (list filename
+s in directory)
directory writable # may alter directory contents (remove or ren
+ame filenames)
directory xecutable # may use directory as component in pathnam
+es or chdir to that directory
# a read-only file is only protecting data (not its filename) from bei
+ng changed
As I understand it: unlinking a file is not determined by the permissions set on the file itself. It is the permissions set on the directory where the file resides in that determines whether the "filename" can be unlinked from the directory aforementioned.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.