how to change default permissions assingment creating folder/files
Derek Broughton
news at pointerstop.ca
Thu Jan 17 16:41:33 UTC 2008
Vitorio Okio wrote:
> On Wed, 16 Jan 2008 05:45:22 +0100, Mario Vukelic wrote:
>
>> On Wed, 2008-01-16 at 01:33 +0000, Vitorio Okio wrote:
>>> I would like to change this default behaviour and have permissions of a
>>> new folder being set to 750 and of a new file to 640 instead.
>>>
>>> Anyone can suggest how to do it?
>>
>> You need the set the umask variable, see
>> http://ubuntudemon.wordpress.com/2007/10/24/default-umask/
>
> yes, but this would make it system wide.
No. You an set a umask for yourself in the ~/.bash* files. By default:
# grep umask ~/.bash*
/home/derek/.bash_profile:# the default umask is set in /etc/login.defs
/home/derek/.bash_profile:#umask 022
--
derek
More information about the ubuntu-users
mailing list