Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Oct 2002 05:37:02 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Socketd <db@traceroute.dk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Security questions
Message-ID:  <20021010023701.GJ21391@hades.hell.gr>
In-Reply-To: <20021009.22451000.4017525480@rafter.>
References:  <20021009.22451000.4017525480@rafter.>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-10-09 22:45, Socketd <db@traceroute.dk> wrote:
> Hi all
> 
> I've noticed that syslogd run as root, but why? Syslog just need to 
> connect to a port, get messages and write them to some files, so why does 
> I have to be root? I know you have to be root to bind() to a port below
> 1024, but there should be a syslog user to lower UID to after it have 
> done that?!?!?

One reason is to be able to bind to a lower port than 1024.

Another reason is obvious if you look at the owner and permissions of
the system log files:

giorgos@patata[05:33]/home/giorgos$ ls -ld /var/log/messages
-rw-r--r--  1 root  wheel  620908 Oct 10 05:33 /var/log/messages

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021010023701.GJ21391>