[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
rm -f and unexecutable directories
From: |
Ed Avis |
Subject: |
rm -f and unexecutable directories |
Date: |
Fri, 7 Nov 2003 19:44:03 +0000 (GMT) |
% mkdir -p fred/jim
% chmod a-x fred/jim
% rm -rf fred
rm: cannot chdir from `fred' to `jim': Permission denied
But since I own the directory I could change the permissions and then
remove it. Shouldn't rm do this if I gave the 'force' option? I
thought that would take all measures necessary.
After all, rm -f doesn't care about permissions on files before
removing them, so shouldn't it work equally well with directories?
Even if it does have to chmod u+rx them behind the scenes.
% rm --version | head -1
rm (coreutils) 5.0
--
Ed Avis <address@hidden>
- rm -f and unexecutable directories,
Ed Avis <=
- Re: rm -f and unexecutable directories, Jim Meyering, 2003/11/07
- Re: rm -f and unexecutable directories, Ed Avis, 2003/11/08
- Re: rm -f and unexecutable directories, Jim Meyering, 2003/11/08
- Re: rm -f and unexecutable directories, Ed Avis, 2003/11/08
- Re: rm -f and unexecutable directories, Bob Proulx, 2003/11/08
- Re: rm -f and unexecutable directories, Jim Meyering, 2003/11/08
- Re: rm -f and unexecutable directories, Ed Avis, 2003/11/08
- Re: rm -f and unexecutable directories, Bob Proulx, 2003/11/08
- Re: rm -f and unexecutable directories, Ed Avis, 2003/11/09
- Re: rm -f and unexecutable directories, Ed Avis, 2003/11/08