Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Chmod 0777 / -R - nichts geht mehr
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)
View previous topic :: View next topic  
Author Message
mquadrat07
n00b
n00b


Joined: 20 Nov 2006
Posts: 4

PostPosted: Mon Nov 20, 2006 5:14 pm    Post subject: Chmod 0777 / -R - nichts geht mehr Reply with quote

Hallo!

Ich depp hab ein bissel zu viel rumgespielt, habe dann

chmod 0777 -R / gemacht und reboot eingegeben ...............

Soooo es handelt sich hier um einen Rootserver - welcher nun nicht mehr zu erreichen ist. Rescuesystem, mounten chroot etc. wäre kein problem. Aber wie ändere ich die Permissions wieder so, das sie stimmen? :(

Bitte Hilfe o.O

Mquadrat
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Mon Nov 20, 2006 6:15 pm    Post subject: Reply with quote

Also als ersten würde ich das Backup zurückspielen. Alles was nicht vom Backup erfasst wurde dann so weiter:

Wenn portage noch geht:
emerge --sync
emerge -e system
emerge -e world

Wenn das nichtmehr geht, würde ich versuchen es zu reparieren, und dann wir oben beschrieben weitermachen.

Wenn das fertig ist musst du alle Daten, die du von Hand erstellt oder hinkopiert hast, manuell anpassen.

Das sicherste dürfte es aber sein das System komplett neu zu installieren und /etc /home ... Stück für Stück von Hand zu kopieren und die Rechte anzupassen. Dein System arbeitet mit Absicht nicht mehr obwohl die Rechte es zulassen würden. Es wird nur erkannt, dass die Rechte total unsicher sind.
Back to top
View user's profile Send private message
mquadrat07
n00b
n00b


Joined: 20 Nov 2006
Posts: 4

PostPosted: Mon Nov 20, 2006 6:53 pm    Post subject: Reply with quote

Hallo!

Danke, ich hab im rescue System alles gemountet und emerge jetzt alles. Ich hoffe blos das der root zumindest wieder startet :/
Back to top
View user's profile Send private message
schmutzfinger
Veteran
Veteran


Joined: 26 Oct 2003
Posts: 1287
Location: Dresden/Germany

PostPosted: Mon Nov 20, 2006 6:57 pm    Post subject: Reply with quote

Das etc-update solltest du aber sehr gewissenhaft machen. Ich weiß nicht ob das die FS-Rechte auch abdeckt. Die Rechte in /etc sollten genauso gemacht werden, wie sie default sind. chmod 777 auf /etc/shadow sollte zum Beispiel unter keinen Umständen so bleiben.
Back to top
View user's profile Send private message
tost
Guru
Guru


Joined: 10 Dec 2005
Posts: 506

PostPosted: Mon Nov 20, 2006 7:51 pm    Post subject: Reply with quote

Ähnlicher englischer Beitrag dazu:
https://forums.gentoo.org/viewtopic-t-517948-highlight-.html

Falls es dir weiterhilft !
Back to top
View user's profile Send private message
mquadrat07
n00b
n00b


Joined: 20 Nov 2006
Posts: 4

PostPosted: Mon Nov 20, 2006 8:40 pm    Post subject: Reply with quote

emerge -e world wird aber nicht meine mysql datenbanken überschreiben hoffe ich? :/
Back to top
View user's profile Send private message
Ampheus
l33t
l33t


Joined: 19 Oct 2005
Posts: 814
Location: Rheine, NRW, Germany

PostPosted: Mon Nov 20, 2006 8:49 pm    Post subject: Reply with quote

Nein, das wird es definitiv nicht.
Deine Datenbanken bleiben erhalten. Wenn die überhaupt noch richtiglaufen nach dem Desaster...
Back to top
View user's profile Send private message
mquadrat07
n00b
n00b


Joined: 20 Nov 2006
Posts: 4

PostPosted: Mon Nov 20, 2006 9:19 pm    Post subject: Reply with quote

Okay, also emerge -e system hat gereicht, der server startet wieder!

Apache und sowas läuft auch noch. Zur Sicherheit werd ich dennoch world neu machen ... das dauert zwar die ganze ancht aber schon okay wenn am ende alles geht :)

Danke
Back to top
View user's profile Send private message
l3u
Advocate
Advocate


Joined: 26 Jan 2005
Posts: 2616
Location: Konradsreuth (Germany)

PostPosted: Mon Nov 20, 2006 9:27 pm    Post subject: Reply with quote

Warum bootet ein System nicht mehr, auf dem jeder Lese-, Schreib- und Ausfürrechte für alles hat? Nur mal so als reine Interessenfrage ... ;-)
Back to top
View user's profile Send private message
tost
Guru
Guru


Joined: 10 Dec 2005
Posts: 506

PostPosted: Mon Nov 20, 2006 9:37 pm    Post subject: Reply with quote

Sicherheitsaspekte ?

Schmutzfinger wrote:
Dein System arbeitet mit Absicht nicht mehr obwohl die Rechte es zulassen würden. Es wird nur erkannt, dass die Rechte total unsicher sind.


Wäre auch meine Idee gewesen
Back to top
View user's profile Send private message
TheHunter
n00b
n00b


Joined: 15 Apr 2006
Posts: 9

PostPosted: Tue Nov 21, 2006 4:42 pm    Post subject: Reply with quote

Würd mich mal interessieren was die Logs dazu sagen, beim Reboot-Versuch...
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: Wed Nov 22, 2006 8:54 am    Post subject: Re: Chmod 0777 / -R - nichts geht mehr Reply with quote

mquadrat07 wrote:
[...]zu viel rumgespielt, habe dann

chmod 0777 -R / gemacht und reboot eingegeben[...]


Und die Moral von der Geschicht?
Als Root rumzuspielen lohnt sich nicht ;-) :lol:

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) 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