[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: umask doesn't work with shellcommands
From: |
Mark . Burgess |
Subject: |
Re: umask doesn't work with shellcommands |
Date: |
Thu, 29 Mar 2001 08:28:14 +0200 (MET DST) |
On 28 Mar, Avi Green wrote:
> Dear fellow cfengineers,
>
> A few days ago, I noticed that cfengine (1.5.4) seems to be running my
> shellcommands with a umask of zero. I tried adding the umask attribute
> as indicated by the cfengine reference:
>
> stage1.linux::
>
> "/bin/sh -c 'echo umask: `umask`; > foo; mkdir Foo; ls
> -ld foo Foo; rm -r foo Foo'"
> umask=0022
>
> But when I run it I get "Illegal shellcommand attribute".
>
> Am I doing something obviously wrong?
>
> Thanks a lot,
> Avi
>
> ======================================================
> = Avi Green :-) avi at sputnik7.com (-: 212 217-1147 =
> ======== Unix SysAdmin & System Specialist =========
> ============= http://www.sputnik7.com ==============
> ===== Netcasting Music, Videos, Film & Anime 24/7 ====
This was correct behaviour and it was always intended to be
that way, but I decided to change it anyway, since so many
people were running into trouble. Ideally everyone should
set their own umask, but no one seems to do it. You
should upgrade to 1.6.3 where you have the adittional
possibilty of inheriting umask from shell or setting your
own per process.
Mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: address@hidden
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: umask doesn't work with shellcommands,
Mark . Burgess <=
- Prev by Date:
Re: file copy not setting dynamic classes
- Next by Date:
L,E.G;A=L; -C;A,B.L;E -B=O;X ;D.E,S.R-MB;LE.R, .P;LA-N;S;..,.;.-;.......,.... 6233
- Previous by thread:
file copy not setting dynamic classes
- Next by thread:
L,E.G;A=L; -C;A,B.L;E -B=O;X ;D.E,S.R-MB;LE.R, .P;LA-N;S;..,.;.-;.......,.... 6233
- Index(es):