I was sharing files with a coworker on a Linux server, and he added some new files. Now we've moved the files somewhere else, so I'd like to remove the old files. However, when my coworker added his files, the software we used made new subdirectories owned by his account, and I can't find quite the right command to remove them.
$ ls -a total 20 drwxrwxr-x 5 markpasc markpasc 4096 Sep 20 09:48 ./ drwxrwxr-x 3 markpasc markpasc 4096 Sep 20 09:48 ../ drwxr-xr-x 2 coworker coworker 4096 Sep 16 14:07 82/ drwxr-xr-x 2 coworker coworker 4096 Sep 16 14:07 c4/
$ rm -rf 82 rm: cannot remove `82/b7fc78bc548537f3ea235026b7322fe3bea91f': Permission denied $ rm -f 82/b7fc78bc548537f3ea235026b7322fe3bea91f rm: cannot remove `82/b7fc78bc548537f3ea235026b7322fe3bea91f': Permission denied $ rmdir 82/ rmdir: 82/: Directory not empty $
I know that normally I can remove a file someone else owns from my directory:
$ ls -a total 8 drwxrwxr-x 2 markpasc markpasc 4096 Sep 20 10:13 ./ drwxr-xr-x 24 markpasc markpasc 4096 Sep 20 10:13 ../ -rw-rw-r-- 1 someuser someuser 0 Sep 20 10:13 file $ rm file rm: remove write-protected regular empty file `file'? y $ ls file ls: file: No such file or directory $
Is there a way to remove these directories myself, or does my coworker (or root) have to remove them?