chown wieder rückgängig machen
Matthias Lersch
matthias.lersch at googlemail.com
Sat Sep 29 12:01:05 CEST 2007
Hallo,
habe da gaanz großen Mist gebaut und folgendes in die Konsole getippt
ohne vorher mein Hirn ein zu schalten:
chown -R username:www-data /
jetzt gehören (fast) alle Daten auf meiner Kiste dieser User:Group
kombination :( was einer mittelgroßen Katastrophe gleich kommt!
Mein Backup hilft mir auch nicht weiter da es schon 2 Wochen alt ist und
ich seit dem einige neue Pakete installiert/geupdatet habe. Ich möchte
ungern die Arbeit der letzten 2 Wochen nochmal machen.
Frage: gibt es eine Möglichkeit die Berechtigungen wieder her zu
stellen? habe in einem Forum diesen Tip gefunden:
Alle Installierten Pakete mit diesem Befehl neu installieren sollte das
Problem beheben:
apt-get install --reinstall $(dpkg --get-selections |grep 'install$'
|grep -v 'deinstall$' | awk '{print $1}')
bekomme aber diese Meldung von apt-get und bin mir nicht sicher ob es
mein Problem behebt, wenn die angegebenen Pakete nicht installiert
werden können:
Reading package lists... Done
Building dependency tree... Done
Reinstallation of kernel-image-2.6.8-12-amd64-k8-smp is not possible, it
cannot be downloaded.
Reinstallation of libapr0 is not possible, it cannot be downloaded.
Reinstallation of libdevmapper1.01 is not possible, it cannot be downloaded.
Reinstallation of libgnutls11 is not possible, it cannot be downloaded.
Reinstallation of libmysqlclient12 is not possible, it cannot be downloaded.
Reinstallation of libmysqlclient14 is not possible, it cannot be downloaded.
Reinstallation of libpq3 is not possible, it cannot be downloaded.
Reinstallation of libreadline4 is not possible, it cannot be downloaded.
Reinstallation of libsigc++-1.2-5c102 is not possible, it cannot be
downloaded.
Reinstallation of libtasn1-2 is not possible, it cannot be downloaded.
Reinstallation of slang1a-utf8 is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 350 reinstalled, 0 to remove and 0 not
upgraded.
Need to get 0B/198MB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]? n
Danke & Gruß
Matthias
More information about the Linux
mailing list