11.2 Die Passwortdateien

Wir wollen unsere beiden hypothetischen Unix-Systeme u1 und u2 nennen. Beispiel 11-1 zeigt die Datei /etc/passwd von u1.[86]

Beispiel 11-1. /etc/passwd-Datei von u1

root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
tolstoy:x:2076:10:Leo Tolstoy:/home/tolstoy:/bin/bash
camus:x:112:10:Albert Camus:/home/camus:/bin/bash
jhancock:x:200:10:John Hancock:/home/jhancock:/bin/bash
ben:x:201:10:Ben Franklin:/home/ben:/bin/bash
abe:x:105:10:Honest Abe Lincoln:/home/abe:/bin/bash
dorothy:x:110:10:Dorothy Gale:/home/dorothy:/bin/bash

Beispiel 11-2 präsentiert /etc/passwd von u2.

Beispiel 11-2. /etc/passwd-Datei von u2

root:x:0:0:root:/root:/bin/bash ...

Get Klassische Shell-Programmierung now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.