Permissions wrong on newly created file

Ask a Question related to SCO, Design and Development.

  1. #1

    Default Permissions wrong on newly created file

    I have two systems unrelated to each other with the same problem.
    Both systems are running 5.0.5 and have RS505A patch loaded. At the
    beginning of the month, a user will log into a certain program. If an
    error occurs while running the program, a log file is created
    automatically and the ownership and group are associated to the user.
    The permissions are set to 644 on the file. Once the file is created,
    other users that have errors occur in the same program will
    automatically update the log. With the permissions being incorrect,
    this can't happen and causes a core file to be created. I've checked
    all the users and the umask settings are all set to 0. I'm not
    trained in Unix and I've had to learn as I earn. Any suggestions as
    to what I else I can check? Thanks!
    Ben Phillips Guest

  2. Similar Questions and Discussions

    1. #40300 [NEW]: Calling a function on a newly created object doesn't work
      From: finalvoid at gmail dot com Operating system: Windows XP PHP version: 5.2.0 PHP Bug Type: Class/Object related Bug...
    2. Page view issues with newly created links
      I just finished creating links on each page of a 200 page document, allowing users to easily jump from section to section. When creating the links I...
    3. Permissions for newly created files by FSO
      Hi there, I'm struggling with this problem: in a website I developed, XML files are created by users of the site to describe. The creation is...
    4. file permissions on files created with lotofile
      when using lotofile the files created (on linux) get permissions 600 owned by informix:informix. this prohibits scenarios where for example a web...
    5. Newly Created Image Not Always Found by Following Code
      I am having a problem where the bitmap image that I just created and saved to disk can not be found but the code in another area of the program....
  3. #2

    Default Re: Permissions wrong on newly created file

    Ben Phillips typed (on Wed, Jul 09, 2003 at 02:04:25PM -0700):
    | I have two systems unrelated to each other with the same problem.
    | Both systems are running 5.0.5 and have RS505A patch loaded. At the
    | beginning of the month, a user will log into a certain program. If an
    | error occurs while running the program, a log file is created
    | automatically and the ownership and group are associated to the user.
    | The permissions are set to 644 on the file. Once the file is created,
    | other users that have errors occur in the same program will
    | automatically update the log. With the permissions being incorrect,
    | this can't happen and causes a core file to be created. I've checked
    | all the users and the umask settings are all set to 0. I'm not
    | trained in Unix and I've had to learn as I earn. Any suggestions as
    | to what I else I can check? Thanks!

    Does this mysterious "certain program" create the log file -- with
    permissions 644 --, and then change its ownership to that of the
    invoking user? Chown (chgrp) will change owner (group) of its
    arguments, but do NOT change the permissions of a file.

    --
    JP
    Jean-Pierre Radley Guest

  4. #3

    Default Re: Permissions wrong on newly created file

    Jean-Pierre Radley <jpr@jpr.com> wrote in message news:<20030709212821.GC4962@jpradley.jpr.com>...
    > Ben Phillips typed (on Wed, Jul 09, 2003 at 02:04:25PM -0700):
    > | I have two systems unrelated to each other with the same problem.
    > | Both systems are running 5.0.5 and have RS505A patch loaded. At the
    > | beginning of the month, a user will log into a certain program. If an
    > | error occurs while running the program, a log file is created
    > | automatically and the ownership and group are associated to the user.
    > | The permissions are set to 644 on the file. Once the file is created,
    > | other users that have errors occur in the same program will
    > | automatically update the log. With the permissions being incorrect,
    > | this can't happen and causes a core file to be created. I've checked
    > | all the users and the umask settings are all set to 0. I'm not
    > | trained in Unix and I've had to learn as I earn. Any suggestions as
    > | to what I else I can check? Thanks!
    >
    > Does this mysterious "certain program" create the log file -- with
    > permissions 644 --, and then change its ownership to that of the
    > invoking user? Chown (chgrp) will change owner (group) of its
    > arguments, but do NOT change the permissions of a file.
    The program was created by the company where I'm employed.
    Unfortunately, nobody I've spoken to can confirm how exactly the log
    file is created, but under our functional systems the file appears to
    be created with permissions of 666, which is what we need. At this
    point I need more information from our programmers and I'm going to
    have to wait to hear back from them.
    Ben Phillips Guest

  5. #4

    Default Re: Permissions wrong on newly created file

    On 9 Jul 2003 14:04:25 -0700, [email]celticskyhawk@hotmail.com[/email] (Ben Phillips)
    wrote:
    >trained in Unix and I've had to learn as I earn. Any suggestions as
    >to what I else I can check? Thanks!
    umask


    Stefan Marquardt Guest

  6. #5

    Default Re: Permissions wrong on newly created file

    Stefan Marquardt <erase-this.stefan.marquardt@hagebau.de> wrote in message news:<3mjsgvk9699e19b6jmrvoccs2bqu9lgr2v@4ax.com>. ..
    > On 9 Jul 2003 14:04:25 -0700, [email]celticskyhawk@hotmail.com[/email] (Ben Phillips)
    > wrote:
    >
    > >trained in Unix and I've had to learn as I earn. Any suggestions as
    > >to what I else I can check? Thanks!
    >
    > umask
    As I documented in the original post, the umask settings have been
    checked and are correct.
    Ben Phillips Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139