Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/shadow- vs /etc/shadow ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Mon Aug 28, 2006 4:29 pm    Post subject: /etc/shadow- vs /etc/shadow ? Reply with quote

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
View user's profile Send private message
Sourcecode
Guru
Guru


Joined: 25 Apr 2005
Posts: 392
Location: Germany, Kerpen in sew of Cologne

PostPosted: Mon Aug 28, 2006 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Mon Aug 28, 2006 5:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
STiGMaTa_ch
Veteran
Veteran


Joined: 28 Dec 2004
Posts: 1686
Location: Rüti ZH / Schweiz

PostPosted: Mon Aug 28, 2006 8:08 pm    Post subject: Re: /etc/shadow- vs /etc/shadow ? Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum