How to set the default file and directory permissions
By using the umask command in the right "dot" file, you can set the default file and directory permissions automatically each time you create/upload a new directory or file in your Webserve account.
- Login to your Webserve account using the PuTTY client. For instructions, please see
How to use PuTTY on Webserve.
-
The umask command needs to be placed in the .cshrc
file for the csh and tcsh shells and in
the .profile file for the ksh shell.
To find out which shell you're currently using, type:echo $SHELL
and hit enter.
-
Open either .cshrc or .profile file.
Type the following at the end of the current file:umask 022
This will give you write and read permissions, and others read permissions on new directories and files.



