FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > General Site Owner Support (All may read/respond) > General Coding/Development
User Name
Password  Lost PW

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 05-09-2000, 02:18 PM   Postid: 20187
Axel
Visitor

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: May 2000
Posts: 2
Setting file attributes on create in C program

Hello

I've wrote a simple CGI script in C.

The problem is upon file creation - create() - the system
does not automaticly sets the file attributes so
that owner can read/write/execute the file.

Well I can change the attributes using the fchmod()
but it is not good for me because the file is created only once a day and they the script writes to the file.
So I could use fchmod() all the time but this is unnessesary
overhead.

So I need that newly created file automagically receives
owner read/write/execute attributes.

Can somebody help me?

Thanks,

P.S. I create file in cgi-bin directory.
P.P.S. I am not a visitor but a Futurequest.net member
P.P.P.S. Execuse my English
------------------
Axel<!-- NO_AUTO_LINK -->
[This message has been edited by Axel (edited 05-09-00@2:23 pm)]
Axel is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump


All times are GMT -4. The time now is 09:52 PM.


Running on vBulletin®
Copyright © 2000 - 2013, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2013 FutureQuest, Inc.
FutureQuest, Inc.