Bugzilla will be upgraded to version 5.0 on December 2, 2018. The outage period for the upgrade will start at 0:00 UTC and have a duration of 12 hours
Bug 84001 - rm queries the user before removing symbolic links to unwriteable files
rm queries the user before removing symbolic links to unwriteable files
Product: Red Hat Linux
Classification: Retired
Component: fileutils (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Tim Waugh
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-02-10 16:44 EST by James Prewett
Modified: 2007-04-18 12:50 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-02-10 17:48:31 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Prewett 2003-02-10 16:44:44 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20030109

Description of problem:
/bin/rm behaves as if it is invoked as /bin/rm -i when removing symbolic links
to unwriteable files.

~$ which rm

~$ touch /tmp/xxx
~$ ln -s /tmp/xxx ./xxx
~$ chmod 000 /tmp/xxx
~$ ls -ld .
drwxr-xr-x   25 download users        2560 Feb 10 14:28 .
~$ rm ./xxx
rm: remove symbolic link `xxx'?

Please note that rm is not aliased to rm -i (nor is there a function, etc that
would be changing which command actually gets used).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. touch /tmp/xxx
2. ln -s /tmp/xxx ./xxx
3. chmod 000 /tmp/xxx
4. rm ./xxx

Actual Results:  I get the message:
rm: remove symbolic link `xxx'?

Expected Results:  symbolic link should have been removed without prompting me

Additional info:

Comment 1 Tim Waugh 2003-02-10 17:48:31 EST
Seems to be fixed in coreutils in rawhide.

Note You need to log in before you can comment on or make changes to this bug.