Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #19215

Re: Additional .ini file

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Additional .ini file
Date 2022-12-24 00:19 +0100
Message-ID <k0mrblFkm8mU1@mid.individual.net> (permalink)
References <to3vu8$ii6$1@gioia.aioe.org>

Show all headers | View raw


On 23/12/2022 11.29, Custom Log wrote:

> But I wonder if it is a correct practice, given that /etc is a system 
> directory (which contains system configuration files), and the system 
> directories should not be touched.

It's just bogus, this are configuration files which the administrator of 
the system should tweak so that the machine is doing what the 
administrator needs it to be able to do.

Just avoid making things writeable by everyone or files with passwords 
or private keys readable by anyone.


> Would it therefore be advisable to specify (through the 
> chef_ini_scan_dir) environment variable) an alternative directory?

No, this could lead to that you don't find the file that easily or in 
worst case the file is writeable for everyone, which could make your 
system easier to be compromised.


 > However, a possible update (of the system) could lead to the overwriting
 > of some of these files

Most package managers do be able to detect if a file is modified and 
then just saves the new config with a postfix. If you create a new file, 
the package manager will know it and will not be trying to save over it 
unless the package for some reason would include a new config file named 
the same as your "random name", but then it would just add a postfix to 
the config file from the package.


-- 

  //Aho

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Additional .ini file Custom Log <custom@log.abc> - 2022-12-23 11:29 +0100
  Re: Additional .ini file Arno Welzel <usenet@arnowelzel.de> - 2022-12-23 12:02 +0100
    Re: Additional .ini file Custom Log <custom@log.abc> - 2022-12-23 13:33 +0100
      Re: Additional .ini file Arno Welzel <usenet@arnowelzel.de> - 2022-12-23 16:16 +0100
  Re: Additional .ini file "J.O. Aho" <user@example.net> - 2022-12-24 00:19 +0100
    Re: Additional .ini file Custom Log <custom@log.abc> - 2022-12-24 08:37 +0100

csiph-web