daemon

Daemon From Hackepedia

A daemon represents three things:

  1. It is the process of daemonizing a program there is a C function for this called daemon(3).
  2. A daemon is a program that runs a service on the system, it is not tied to a terminal and may only write reports to syslog or another logging mechanism. There is SMTP daemons such as sendmail that manage all mail operations, or the inetd superserver which manages a number of services such as chargen and ftp. A daemon orphans itself from the parent process and selects init (process 1) as its parent. Stdin, Stdout and Stderr are reattached to /dev/null. A daemon is in it's own session and is its own process group. Daemons that needed to run as root in order to make use of restricted system calls historically stayed running as root. This has changed in modern implementations where privilege revocation or privilege seperation is used in order to ensure security.
  3. BSD's original mascot, looks like a devil and should not be confused with a demon (which is evil). The mascot has horns, holds a trident (or fork) in its hands and has a tail. It wears green sneakers (converse basketball sneakers probably) and is seen in early drawings as chasing a golden orb. FreeBSD uses this mascot extensively. OpenBSD has replaced the daemon mascot with puffy the blowfish. If you look closely on a picture of Puffy though the tail often looks like the silhouette of a daemon's head.


German - von Hackepedia

Ein "daemon" in UNIX kann drei Dinge meinen:

  1. Es ist ein C programm das in den hintergrund geschickt wird mit der daemon(3) C-funktion.
  2. Ein daemon ist ein Programm das einen Dienst im System läuft. Dieses Programm hat keine angebundenen tty's und kann nur nachrichten schreiben durch syslog oder andere Mechanismen. Es gibt SMTP daemons wie sendmail die alle e-mail Kommunikationen handeln, oder es gibt den inetd superserver der verschiedene Dienste managed, so wie chargen oder FTP. Ein daemon zweigt sich ab von dem eltern programm und das system gibt es den prozess 1 als neuer parent (eltern). Die handle descriptoren Stdin, Stdout, Stderr werden neu nach /dev/null geleitet. Ein daemon hat seine eigene "session" und eigene "process" group. Daemons die als root gelaufen werden so das sie bestimmte system aufrufe machen koennen, wurden früher auch als root gerannt gelassen werden. Das hat sich geändert in neuen implementationen wo "privilege seperation" und "privilege revocation" benutzt werden um einen daemon als einen untergestuften benutzer lauften zu lassen. Das macht die sicherheit viel besser.
  3. BSD's originelles Masköttchen, sieht aus wie ein Teufelchen und sollte nicht mit einem einem Demon verwechselt werden (das andere ist böse). Dieses masköttchen hat hörner, haltet eine Gabel (keine mist-gabel!) in seinen händen und hat einen Schwanz. Es hat grüne converse basketball turnschuhe an und ist gesehen meistens wenn es einer goldene kugel nachläuft. FreeBSD benutzt dieses Masköttchen. OpenBSD hat ein neues Masköttchen (Puffy) das ein Pufferfisch ist. Aber wenn man den Schwanz von Puffy sieht, sieht man immer noch eine Silhuette von dem Daemon's Kopf.

DeutschEnglish
Masköttchenmascot
hintergrundbackground
Pufferfischblowfish
Kugelorb