Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!ugle.unit.no!nuug!ifi!bis From: bis@ifi.uio.no (Bjorn Ivar Stark) Newsgroups: comp.unix.aix Subject: Why does the at command change the umask, etc. Message-ID: Date: 22 Feb 91 13:12:43 GMT Sender: bis@ifi.uio.no (Bjorn Ivar Stark) Organization: University of Oslo, Norway Lines: 46 Nntp-Posting-Host: krokrygg.ifi.uio.no Originator: bis@krokrygg.ifi.uio.no I am running AIX 3.1. on level 3000. I do experience some problems both with the at-queue and the default queue for running shell script: 1. The at command: $ umask 2 $ at now + 1 min umask > at-umask Job fosli.666805320.a will be run at Sat Feb 16 16:42:00 1991. $ cat at-umask 022 In other words the at command resets the umask to 022. Why/Where? 2. Using enq -Pbsh Let me use a simple shell script test (which just create a file): fosli@ASTERIX /u/asterix/a/fosli: more /local/bin/test #!/bin/bsh echo "dette er et test-skript" > $HOME/test.test fosli@ASTERIX /u/asterix/a/fosli: /local/bin/test fosli@ASTERIX /u/asterix/a/fosli: ls -l test.test -rw-rw-r-- 1 fosli system 24 Feb 07 15:30 test.test fosli@ASTERIX /u/asterix/a/fosli: rm test.test However by using the default bsh queue provided by IBM i get this result: fosli@ASTERIX /u/asterix/a/fosli: enq -Pbsh /local/bin/test fosli@ASTERIX /u/asterix/a/fosli: ls -l test.test -r-----rw- 1 fosli system 24 Feb 07 15:30 test.test How can I get normal protection? Anyone? -- ----------- Oystein Fosli Norsk Hydro a.s ph.: (472) 739660 Postboks 200, VK-A3 fax: (472) 739991 1321 STABEKK internet: bis@ifi.uio.no Norway Brought to you by Super Global Mega Corp .com