[syslog-ng]change directory/file permissions

Nate Campi nate@campin.net
Wed, 26 Jun 2002 02:18:21 -0700


--4PJudQiuYY5+cwwi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jun 26, 2002 at 11:12:03AM +0200, Stefan M. Brandl wrote:
> On Wed, Jun 26, 2002 at 11:06:26AM +0200, Nate Campi wrote:
> > On Wed, Jun 26, 2002 at 10:51:01AM +0200, Stefan M. Brandl wrote:
> > >=20
> > > But it only changes the permissions of the file, not of the
> > directories.
> > > What can I do, that also the directories get 644?
> >=20
> > Directories generally aren't useful without the execute bit set, at=20
> > least for it's owner.
> >=20
> > What exactly are you trying to accomplish?
>=20
> I want that everyone can read the logile.
> The file is 644, but the directory is 600, so no user beside root
> can read the logifle.

OK, at first it seemed like you wanted to make the directory 600, but
now it seems like you want the directory something more like 755. Is
this correct?

Use "dir_perm":

destination times {
file("/var/log/TIMES/$YEAR/$MONTH/$DAY/$HOST/$FACILITY$YEAR$MONTH$DAY"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };

--=20
"Clothes make the man. Naked people have little or no influence on=20
society." - Samuel Clemens


--4PJudQiuYY5+cwwi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9GYbdWpDEZMF673kRAtGkAJ9mlWk6VJQmQcB9ncmkawGERb1XugCfZVoY
9y/E54htjjF20hGgc30bXJ4=
=+Orw
-----END PGP SIGNATURE-----

--4PJudQiuYY5+cwwi--