[KLUG Members] RE: Re: A [simple?] question (Robert G. Brown)

Robert G. Brown members@kalamazoolinux.org
Mon, 24 May 2004 21:47:23 -0400


On Mon, 24 May 2004 12:05:40 -0500, "Robert V. Kanaley" wrote:

>>>> On UNIX systems generally, what determines the permission settings for
>>>> a file that is newly created by a program?
>>>I just ran across this article linked on a news site that explains the
>>>default premissions extremely well:
>>>http://www.sun.com/bigadmin/content>/submitted/umask_permissions.html?biga15
>>
>>This is a good article on the topic, and I recommend it to anyone who is
>>interested in this. It conforms a lot of what I believe (which naturally
>>makes it better!:).
>>
>>I will be following up on this during this week, and will report back when
>>I know the response of the vendor.
>
>Since your post has to do with a program creating a file, I think the
>following link adds additional pertinent information for programmatically
>addressing file creation permissions.
>
>http://www.belgeler.org/glibc/glibc-Setting-Permissions.html
Yes, this provides additional good background.

There does not seem to be any substantial disagreement with the notion that
it is a good, safe, and normal practice to presume that the umask will be 
the controlling factor in determining how permissions are set for newly
created files.

There have been two exceptions noted, one for cp and another for tar; both of
these are reasonable and ordinary exceptions needed for file management, but
they are not typical of most applications.

Are there some additional remarks anyone cares to add to the above?

I will be following up with the vendor this week.

							Regards,
							---> RGB <---