[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting permissions to new files?



On Sun, Jun 17, 2007 at 18:11:02 -0300, Bruno Buys wrote:
>Where do I change the permissions that are set when I create a new file? I 
>mean, I'd like to be able to change the default permissions that my system 
>atributes to new files.
>
>bruno@merlin:~$ > newfile
>bruno@merlin:~$ ls -l newfile
>-rw-r--r-- 1 bruno bruno 0 2007-06-17 18:06 newfile
>
>I'd like new files to be created as writable to the group, as in
>
>-rw-rw-r-- 1 bruno bruno 0 2007-06-17 18:06 newfile

Look into umask.

/M

-- 
Magnus Therning                             (OpenPGP: 0xAB4DFBA4)
magnus@therning.org             Jabber: magnus.therning@gmail.com
http://therning.org/magnus

Attachment: pgpfkP5wNeZSZ.pgp
Description: PGP signature


Reply to: