At start syslog-ng-1.6.9 changes permissions for files in 600 and user name:group name in root:root. example: # grep '"/dev/tty12"' /etc/syslog-ng/syslog-ng.conf destination console_all { file("/dev/tty12"); }; # ls -l /dev/tty10 crw-rw---- 1 root tty 4, 10 Feb 4 20:48 /dev/tty10 # ls -l /dev/tty11 crw-rw---- 1 root tty 4, 11 Feb 4 20:48 /dev/tty11 # ls -l /dev/tty12 crw------- 1 root root 4, 12 Feb 4 22:40 /dev/tty12 # emerge --info Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 Intel(R) Celeron(TM) CPU 1300MHz Gentoo Base System version 1.6.14 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 alsa apm arts avi berkdb bitmap-fonts bzip2 chroot crypt cups eds emboss encode expat extensions foomaticdb fortran gdbm gif gnome gstreamer gtk2 idn imlib jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pam_chroot pam_console pam_timestamp pcre pdflib perl png python qt quicktime readline sdl slang spell ssl tcpd truetype truetype-fonts type1-fonts udev unicode userlocales vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
/dev/tty12 is not a file, it's a device. And the permissions are correct.
*** Bug 121578 has been marked as a duplicate of this bug. ***
*** Bug 121579 has been marked as a duplicate of this bug. ***
(In reply to comment #1) > /dev/tty12 is not a file, it's a device. And the permissions are correct. > But if to write down in /etc/syslog-ng/syslog-ng.conf /dev/null for example that after start syslog-ng permissions vary on 0600. before ls -l /dev/null crw-rw-rw- 1 root root 1, 3 Feb 4 05:11 /dev/null after ls -l /dev/null crw------- 1 root root 1, 3 Feb 4 05:32 /dev/null
(In reply to comment #4) Use perm, owner and group options if you want to do such stuff (see man syslog-ng.conf for more details). Default permissions are 0600 root:root for safety reasons, that is not a bug.