Unix Technical Forum

Permissions wrong on newly created file

This is a discussion on Permissions wrong on newly created file within the Sco Unix forums, part of the Unix Operating Systems category; --> I have two systems unrelated to each other with the same problem. Both systems are running 5.0.5 and have ...


Go Back   Unix Technical Forum > Unix Operating Systems > Sco Unix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-15-2008, 10:05 AM
Ben Phillips
 
Posts: n/a
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-15-2008, 10:05 AM
Jean-Pierre Radley
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-15-2008, 10:05 AM
Ben Phillips
 
Posts: n/a
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-15-2008, 10:05 AM
Stefan Marquardt
 
Posts: n/a
Default Re: Permissions wrong on newly created file

On 9 Jul 2003 14:04:25 -0700, celticskyhawk@hotmail.com (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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-15-2008, 10:05 AM
Ben Phillips
 
Posts: n/a
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, celticskyhawk@hotmail.com (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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:40 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com