Jorge P. de Morais Neto
2023-04-25 18:40:01 UTC
Hi. I want my personal files inaccessible from unprivileged other
accounts. I have already executed the following commands with ~ as
working directory:
find . \( -path ./Public -o -type l \) -prune -o -exec chmod o= {} +
chmod -c o+x .
I now want to change my user's umask from 022 to 027, so new files and
directories will also be secure. I have tried adding to ~/.profile the
line
umask 027
and rebooting but it did not work. I tested by, in Emacs (launched from
Gnome), creating a new file in my Home and it did not respect the 027
umask.
So, how do I change my user's umask for the entire Gnome session?
Regards
accounts. I have already executed the following commands with ~ as
working directory:
find . \( -path ./Public -o -type l \) -prune -o -exec chmod o= {} +
chmod -c o+x .
I now want to change my user's umask from 022 to 027, so new files and
directories will also be secure. I have tried adding to ~/.profile the
line
umask 027
and rebooting but it did not work. I tested by, in Emacs (launched from
Gnome), creating a new file in my Home and it did not respect the 027
umask.
So, how do I change my user's umask for the entire Gnome session?
Regards
--
- Many people hate injustice but few check the facts; this causes more
injustice. Ask me about <https://stallmansupport.org>
- Please adopt free/libre formats like PDF, Org, LaTeX, ODF, Opus, WebM and 7z.
- Libre apps for AOSP (Replicant, LineageOS etc.) and Android: F-Droid
- https://www.gnu.org/philosophy/free-sw.html "What is free software?"
- Many people hate injustice but few check the facts; this causes more
injustice. Ask me about <https://stallmansupport.org>
- Please adopt free/libre formats like PDF, Org, LaTeX, ODF, Opus, WebM and 7z.
- Libre apps for AOSP (Replicant, LineageOS etc.) and Android: F-Droid
- https://www.gnu.org/philosophy/free-sw.html "What is free software?"