bis@ifi.uio.no (Bjorn Ivar Stark) (02/22/91)
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
jfh@greenber.austin.ibm.com (John F Haugh II) (03/09/91)
In article <BIS.91Feb22141227@krokrygg.uio.no> bis@ifi.uio.no (Bjorn Ivar Stark) writes: |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? Hmmm. First the "why" part. AIX v3 has a definition for what the user want's their umask to be for the processes they create. It is part of the user information for each user. Each user stanza has a "umask" attribute in the /etc/security/user file. If you don't have a value, the value from the default stanza is used. If you don't have a default stanza, the value 022 is used. If you don't like the value the system has set up for you as the default, you can always set it yourself inside the at job with an explicit "umask" command. As for the "where" part, it is handled automatically when "at" starts the job. -- John F. Haugh II | I've Been Moved | MaBellNet: (512) 838-4340 SneakerNet: 809/1D064 | AGAIN ! | VNET: LCCB386 at AUSVMQ BangNet: ..!cs.utexas.edu!ibmchs!auschs!snowball.austin.ibm.com!jfh (e-i-e-i-o)