LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   getting permissions to stick? (https://www.linuxquestions.org/questions/linux-newbie-8/getting-permissions-to-stick-613750/)

lleb 01-15-2008 12:20 PM

getting permissions to stick?
 
on my web server i have 2 users that are part of the website group. i want the umask of both users to be 002 so they can create files and directories that are group writable. this way if user1 creates a directory user2 can interact, create subdirectories, delete files and directories etc... without having to have root chmod -R g=u,o=u-w . withing the default directory of the web page every time a file or directory is changed.

user1 connects via ssh either from linux or OSx, user2 uses winSCP

http://winscp.net/eng/index.php

to connect from windows and from time to time will use putty.

now in the .bashrc under both user1 and user2 umask 002 has been set.

Code:

cat .bashrc
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

#set file creation mask
umask 002

alias d='ls -laF'

# User specific aliases and functions

is that not set correctly?

bigrigdriver 01-15-2008 01:06 PM

Changing ~/.bashrc will only change your user environment. To make the change global (affecting all users) edit /etc/profile.
Code:

#
# The user file-creation mask
#
umask 002



All times are GMT -5. The time now is 03:42 PM.