• Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    English
    arrow-up
    6
    ·
    1 year ago

    sudo would do nothing. Changing the (effective) user and group IDs does not magically make rm aware of the immutable bit, nor does it alter the behaviour of rm’s code to unset that bit before trying to remove it.

    In the example I gave above, I did use sudo. sudo -i started an interactive shell with root permissions, and rm failed to remove the directory and file inside it.