Hi all.
I would like to implement saferm (https://launchpad.net/safe-rm) to prevent accidental deletion of user homes and mounted network drives, just to name a few, via jamf script.
However, if I crackbrainly and accidentally run a jamf script with " rm -rf / " in it, which rm would be actually called by this?
/usr/local/bin/rm?
/usr/bin/rm?
The first mentioned in the /etc/paths file (should be by default /usr/local/bin/rm)?
Any other I do not think about?
I get different results running this command locally and remotely via jamf (after installation of saferm in /usr/local/bin/rm), even if I give the complete path in the script /usr/local/bin/rm).
Any ideas?
Best regards
Christian
Question
General script question - which "rm" is used by Jamf script?

Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.