Setting of LMDE umask 002

From Thomas-Krenn-Wiki
Jump to navigation Jump to search

In LMDE 6 (Linux Mint Debian Edition 6), the umask is 022 by default. For newly created files, this removes write permissions (octal 2) from both group permissions (groups) and permissions for other accounts (others). On systems with multiple users, this makes it difficult to edit shared files because other group members are not allowed to write to files created by other users. In this article, we show you how to set the umask to 002 so that other group members have write permissions for newly created files.

Settings for graphic surface

Create a file /etc/profile.d/umask.sh with the following content and restart your system:[1]

umask 002

Settings for the bash

Add for every user the following line on the end of the file /home/user/.bashrc

umask 002

More information

  • umask (wiki.archlinux.org)


References

  1. Resetting Mint's Default umask to 002 (forums.linuxmint.com, 26.03.2015)


Author: Werner Fischer

Werner Fischer, working in the Knowledge Transfer team at Thomas-Krenn, completed his studies of Computer and Media Security at FH Hagenberg in Austria. He is a regular speaker at many conferences like LinuxTag, OSMC, OSDC, LinuxCon, and author for various IT magazines. In his spare time he enjoys playing the piano and training for a good result at the annual Linz marathon relay.


Translator: Alina Ranzinger

Alina has been working at Thomas-Krenn.AG since 2024. After her training as multilingual business assistant, she got her job as assistant of the Product Management and is responsible for the translation of texts and for the organisation of the department.


Related articles

Linux Performance Measurements using vmstat
Lshw -c network -businfo
Search for Linux kernel source code