On Thu, Apr 11, 2002 at 12:28:44AM -0400, Barry wrote:
> I am having a problem with temporary files required by a new app I am
> trying. 
> 
> Where/how do I set default permissions for root, user please.

You need to look at the umask setting.
The default setting lives within the kernel, but you probably don't want
to be playing with that (Under Debian, see S_IWGRP and S_IWOTHR)
Then there is a setting within the 'first' startup file (/etc/init.d/rc
for example, your mileage will almost definately vary).

However, if your application is invoked by a user (be it root or
otherwise) you can put a umask command in the appropriate profile or
.shellrc file to make it the user's default ...

But probably the best way to limit the change to just your application
would be to invoke the app from a short shell script that just calls
umask, then exec's your app.

If you have the source for your application, you could consider changing
it so that it either sets it's own umask, or (better) actually changes
the permissions of its temporary files to what it needed.

-jim

Reply via email to