'sudo rm' doesn't ask for confirmation
'sudo rm' on a file doesn't ask for confirmation, it just removes the file even though I aliased 'rm' to 'rm -i' in a script in /etc/profile.d/
Here's the strange part though. When I first do 'su root' and THEN as root do an 'rm', it will ask for confirmation. However, when I am logged in as a non-privileged user and do a 'sudo rm', it doesn't ask for confirmation (even though I thought sudo would do so because that's how it behaved for the root user when I did 'su root').
How can I ensure that 'sudo rm' will prompt me before removing anything?
|