Why does the at command change the umask, etc.
Bjorn Ivar Stark
bis at ifi.uio.no
Sat Feb 23 00:12:43 AEST 1991
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 at ASTERIX /u/asterix/a/fosli: more /local/bin/test
#!/bin/bsh
echo "dette er et test-skript" > $HOME/test.test
fosli at ASTERIX /u/asterix/a/fosli: /local/bin/test
fosli at ASTERIX /u/asterix/a/fosli: ls -l test.test
-rw-rw-r-- 1 fosli system 24 Feb 07 15:30 test.test
fosli at ASTERIX /u/asterix/a/fosli: rm test.test
However by using the default bsh queue provided by IBM i get this
result:
fosli at ASTERIX /u/asterix/a/fosli: enq -Pbsh /local/bin/test
fosli at 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 at ifi.uio.no
Norway
More information about the Comp.unix.aix
mailing list