I have two users. I want to set for user_2 umask 007 so that every new file will have 770 (rwx rwx ---) privileges and so that user_1 can write and save changes to those files. I added user_1 to groups of user_2.
In Gnome 2 I just needed to add umask 007 to .profile in home folder. So it looked like this:
But I see that in KDE it doesn't work.
A new text file created by user_2 has 644 (-rw-r--r--).
In Gnome 2 I just needed to add umask 007 to .profile in home folder. So it looked like this:
Code:
# if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi umask 007
A new text file created by user_2 has 644 (-rw-r--r--).
Comment