How can i disable force options for linux commands

Sir ,

   Is there any way for me to disable force \(-f \) options to linux commands like rm. I tried to alias rm -f.

alias rm -f = "rm -i"

but it shows bad alias name error

I need this command specifically for rm. Atleast i want this command to be interactive whether I issue rm ,rm -rf , rm -r etc. Is there any way to do this..

however, they can just "unalias 'rm -rf" and you are stuck.

How about you don't give that user the ability to use those binaries? additionally, you could learn about file permissions, noclobber, immutable settings as well as sticky bits.

alias will not do what you want. You need to write a shell script wrapper around the rm command which removes the -f option from the command line argument list before passing the remaining arguments to the rm command.

Do a Web search for "shell script wrapper"