chown wieder rückgängig machen
Florian Lohoff
flo at rfc822.org
Mon Oct 1 21:33:56 CEST 2007
On Mon, Oct 01, 2007 at 12:27:18PM +0200, Matthias Lersch wrote:
> Florian Lohoff schrieb:
> > Welche? Fuer konkrete hilfe brauchen wir konkrete fehlermeldungen. apt
> > kann jetzt nicht so schwierig sein wieder ans laufen zu bringen.
> >
> apt an sich funktioniert schon, habe inzwischen exim4 damit per
> --reinstalle neu eingespielt, nur anscheinend setzt er die user:group
> nicht wieder zurück sondern übernimmt den Quatsch den ich per
> chown -R username:www-data / (als root) systemweit versemmelt habe :(
Sollte es aber ... Bei mir zumindest geht da - Es mag ausnahmen von
files geben z.b. config files in /etc
flo at firewall:~$ ls -la /bin/ls
-rwxr-xr-x 1 root root 77108 2007-08-20 00:23 /bin/ls
flo at firewall:~$ sudo chown flo.users /bin/ls
flo at firewall:~$ ls -la /bin/ls
-rwxr-xr-x 1 flo users 77108 2007-08-20 00:23 /bin/ls
flo at firewall:~$ sudo apt-get -fuy --reinstall install coreutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 82 not upgraded.
Need to get 0B/3112kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database ... 130862 files and directories currently installed.)
Preparing to replace coreutils 5.97-5.4 (using .../coreutils_5.97-5.4_i386.deb) ...
Unpacking replacement coreutils ...
Setting up coreutils (5.97-5.4) ...
flo at firewall:~$ ls -la /bin/ls
-rwxr-xr-x 1 root root 77108 2007-08-20 00:23 /bin/ls
> daher glaube ich nicht das ein reinstall aller packete mein system
> wieder rettet. Oder habe ich da einen Parameter vergessen? Ich habe
> folgendes ausprobiert und bekomme dann diese Meldung:
>
> myDebian:~# apt-get install --reinstall $(dpkg --get-selections |grep
> 'install$' | grep -v 'deinstall$' | grep -v 'apache-common' | awk
> '{print $1}')
Guess what - kein permission problem:
> E: Couldn't configure pre-depend coreutils for debianutils, probably a
> dependency cycle.
coreutilsund debianutils excluden und manuell machen - oder wie waere es mit
einem
for i in $(dpkg --get-selections | egrep -v "deinstall|purge" | awk '{ print $1 }'); do echo $i; apt-get --reinstall -fuy install $i; don
> Sorry für den TOFU mist, hoffe so ist es besser!?
Definitiv ...
Flo
--
Florian Lohoff flo at rfc822.org +49-171-2280134
Those who would give up a little freedom to get a little
security shall soon have neither - Benjamin Franklin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lug-owl.de/pipermail/linux/attachments/20071001/fd53cf34/attachment.sig>
More information about the Linux
mailing list