Re: strange umask behaviour
On (07/11/04 18:04), Ali Alphan Bayazit wrote:
> On Sun, 2004-11-07 at 22:05 +0000, Clive Menzies wrote:
> > Hi
> >
> hello,
>
> > In my .bashrc and .bash_profile I have umask set at 022 however when I
> > create a file, the permissions look like this:
> >
> > -rw-r--r--
> >
> that looks correct to me, (r=4,w=2,x=1)
> mask 666 using 022 = 644
My understanding is that it is mask 777 using 022 = 755
>
> > instead of:
> >
> > -rwxr-xr-x
> >
>
> why do you think a regular file is created with execute permission?
> however, if you create a directory for example, you will see what you
> are looking for.
a shell script for example? What actually alerted me to this was a .sh
to back-up a file to a series of backup files as an exercise. But it
couldn't seem to create the files.
>
> > Am I being really dense or is this a bug?
> >
> > umask 555 creates files as --w--w--w- which looks fine.
>
> that means mask everything except write permission, so this is also fine
Thanks
Clive
--
www.clivemenzies.co.uk ...
...strategies for business
Reply to: