View previous topic :: View next topic |
Author |
Message |
m.b.j. Guru
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Mon Aug 28, 2006 4:29 pm Post subject: /etc/shadow- vs /etc/shadow ? |
|
|
Hi,
Ich stelle mir gerade die Frage warum ich in meiner /etc folgende Dateien besitze:
/etc/shadow
/etc/shadow- (mir kommt es auf diesen Bindestrich an)
Mir ist schon klar, das in der shadow datei die Passwörter meiner Benutzer agbespeichert werden, allerdings frage ich mich warum noch eine zweite Datei mit einem '-' existiert. (Das gleiche gilt auch für /etc/group- und /etc/passwd-). Die Man Pages schweigen sich aus, die Forensuche hat was gegen ein '-' im Pattern und '/etc/shadow-' für Googe zu escapen war mir nicht möglich.
Mfg
Markus _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
|
Sourcecode Guru
Joined: 25 Apr 2005 Posts: 392 Location: Germany, Kerpen in sew of Cologne
|
Posted: Mon Aug 28, 2006 5:03 pm Post subject: |
|
|
Maybe ein altes Backup?
Schau dochmal bitte auf das Datum wann die jeweiligen Files erstellt wurden, das dürfte weiterhelfen.
Ist aber ansich ein Komisches Backup.
idr. haben Backups die automatisch erstellt werden ein ~ und kein - _________________ Es gibt bloss eins, was wichtig ist: dass man sterben muss.
Suicide is man's way of telling God, "You can't fire me - I quit."
no one gets out here alive....
|
|
Back to top |
|
|
m.b.j. Guru
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Mon Aug 28, 2006 5:32 pm Post subject: |
|
|
Auf die Idee mit den timestamps bin ich nicht gekommen gleich mal ausprobiert:
Code: | seon etc # ls -l shadow* passwd* group*
-rw-r--r-- 1 root root 952 2006-08-24 13:32 group
-rw------- 1 root root 931 2006-08-18 12:20 group-
-rw-r--r-- 1 root root 3224 2006-08-28 12:51 passwd
-rw------- 1 root root 3212 2006-08-19 16:27 passwd-
-rw------- 1 root root 1606 2006-08-24 13:32 shadow-
-rw------- 1 root root 1547 2006-08-18 12:20 shadow |
Mhh grundsätzlich sind die '-' Dateien kleiner, da ich in letzer Zeit nur user hinzugefügt habe schätze ich mal, dass diese Dateien ein Pre-Action Backup sind. Im Falle eines Stromausfalls während den Operationen könnte ich einfach den vorherigen Status wiederherstellen.
Ist aber keine Gentoo Eigendschaft, hab gerade auf nem Ubuntu System geschauft, genau das gleiche Bild...
Mfg
Markus _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
|
STiGMaTa_ch Veteran
Joined: 28 Dec 2004 Posts: 1686 Location: Rüti ZH / Schweiz
|
Posted: Mon Aug 28, 2006 8:08 pm Post subject: Re: /etc/shadow- vs /etc/shadow ? |
|
|
m.b.j. wrote: | Ich stelle mir gerade die Frage warum ich in meiner /etc folgende Dateien besitze:
/etc/shadow
/etc/shadow- (mir kommt es auf diesen Bindestrich an) |
Ohne Bindestrich ist es die aktuell verwendete Datei, mit Bindestrich ist es das Backup. Dieses wird automatisch angelegt, wenn du mit einem Systemtool was daran änderst.
Alles kein Grund zur Sorge
Lieber Gruss
STiGMaTa _________________ Ich bin Schuldknappe. Das bedeutet ich bin immer an allem Schuld. Und das nicht zu knapp! | Der alltägliche Familienwahnsinn auf meinem BLOG |
|
Back to top |
|
|
|