> Date: Wed,  8 Sep 2021 11:24:18 +0200
> From: jim hook <jimhook7...@mail.com>

> Thinking of that home dirs could be on a shared storage, that can be
> accessed by others and maliciously modify the ".profile", etc. files
> of the targeted user.
> 
> ex.: "unset cd" would help, but any solution in general?

directory permissions.  in code:

        for u in /home/*
        do chown "$u" "/home/$u"
        chmod go-w "/home/$u"

which you should find is already the default.


Reply via email to