You are not logged in.
Hello There !
I messed up, as being the root user,
did a
chown -R root /usr /var /etc
I'm using KDE 4.2, and I bet I messed up with the system.
How can I recover this ?
I cannot start up kde from KDM, just dont know how can I make it work. I reinstalled the whole kde packages..
Thanks in advance.
Quarkup
edit: solved it by installing and turning on the "consolekit" daemon: see this topic http://bbs.archlinux.org/viewtopic.php?id=62554
Last edited by quarkup (2009-04-01 18:09:52)
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
Are you having any specific problems? I think your system probably should still work. You could just do
chown -R root:root /usr
if you want. Most of the directories in /usr are owned root:root on my system, and I haven't changed anything there from the default. If some of yours had different owners or groups, you can just change them back manually afterward.
Offline
After rebooting, I cannot login to KDE (kdm is just restarting everytime i press the enter to login)
I'm using framebuffer now.
the mpd its still working fine, drivers are fine too (as the kdm appeared).
It seems that probably chowned /etc and /var too..
the command "startx" output is
Fatal server error:
xf860OpenConsole: Cannot Open Virtual Console 7 (Permission denied)
Xorg.0.log is fine, but the "permission errors"
Last edited by quarkup (2009-03-22 18:23:19)
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
[byte@io ~]$ find /usr/ ! -user root -o ! -group root | xargs ls -l
-rwxr-sr-x 1 root locate 30860 19. Jan 04:27 /usr/bin/locate
-rwxr-sr-x 1 root mail 78208 21. Mär 00:35 /usr/bin/mail
-rwxr-sr-x 1 root tty 8596 9. Mär 18:31 /usr/bin/write
-rwxr-sr-x 1 root policykit 13336 30. Nov 15:51 /usr/lib/PolicyKit/polkit-explicit-grant-helper
-rwxr-sr-x 1 root policykit 14680 30. Nov 15:51 /usr/lib/PolicyKit/polkit-grant-helper
-rwsr-xr-- 1 root policykit 7568 30. Nov 15:51 /usr/lib/PolicyKit/polkit-grant-helper-pam
-rwxr-sr-x 1 root policykit 9132 30. Nov 15:51 /usr/lib/PolicyKit/polkit-read-auth-helper
-rwxr-sr-x 1 root policykit 14968 30. Nov 15:51 /usr/lib/PolicyKit/polkit-revoke-helper
-rwsr-xr-x 1 policykit root 15036 30. Nov 15:51 /usr/lib/PolicyKit/polkit-set-default-helper
-rwsr-x--- 1 root dbus 40004 8. Mär 13:58 /usr/lib/dbus-1.0/dbus-daemon-launch-helper
-r--r--r-- 1 root mail 947 21. Mär 00:35 /usr/share/misc/mail.help
-r--r--r-- 1 root mail 823 21. Mär 00:35 /usr/share/misc/mail.tildehelp
1000
Offline
<duplicated post - sorry>
Last edited by quarkup (2009-03-22 19:18:13)
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline
[byte@io ~]$ find /usr/ ! -user root -o ! -group root | xargs ls -l -rwxr-sr-x 1 root locate 30860 19. Jan 04:27 /usr/bin/locate -rwxr-sr-x 1 root mail 78208 21. Mär 00:35 /usr/bin/mail -rwxr-sr-x 1 root tty 8596 9. Mär 18:31 /usr/bin/write -rwxr-sr-x 1 root policykit 13336 30. Nov 15:51 /usr/lib/PolicyKit/polkit-explicit-grant-helper -rwxr-sr-x 1 root policykit 14680 30. Nov 15:51 /usr/lib/PolicyKit/polkit-grant-helper -rwsr-xr-- 1 root policykit 7568 30. Nov 15:51 /usr/lib/PolicyKit/polkit-grant-helper-pam -rwxr-sr-x 1 root policykit 9132 30. Nov 15:51 /usr/lib/PolicyKit/polkit-read-auth-helper -rwxr-sr-x 1 root policykit 14968 30. Nov 15:51 /usr/lib/PolicyKit/polkit-revoke-helper -rwsr-xr-x 1 policykit root 15036 30. Nov 15:51 /usr/lib/PolicyKit/polkit-set-default-helper -rwsr-x--- 1 root dbus 40004 8. Mär 13:58 /usr/lib/dbus-1.0/dbus-daemon-launch-helper -r--r--r-- 1 root mail 947 21. Mär 00:35 /usr/share/misc/mail.help -r--r--r-- 1 root mail 823 21. Mär 00:35 /usr/share/misc/mail.tildehelp
That's interesting, all my policykit files are owned either by root:root or root:<user>, with the exception of /usr/lib/Policykit/polkit-set-default-helper, which is policykit:root. So maybe changing either to what byte listed or to root:root or root:<user> for those files would work.
02:57 PM:/usr/lib/PolicyKit $ ll
total 204
-rwxr-sr-x 1 root sero 17152 2008-11-30 09:43 polkit-explicit-grant-helper*
-rwxr-xr-x 1 root root 66864 2008-10-12 14:13 polkit-gnome-manager*
-rwxr-sr-x 1 root sero 17464 2008-11-30 09:43 polkit-grant-helper*
-rwsr-xr-- 1 root sero 9880 2008-11-30 09:43 polkit-grant-helper-pam*
-rwxr-sr-x 1 root sero 11360 2008-11-30 09:43 polkit-read-auth-helper*
-rwsr-xr-x 1 root root 8008 2008-11-30 09:43 polkit-resolve-exe-helper*
-rwxr-sr-x 1 root sero 19520 2008-11-30 09:43 polkit-revoke-helper*
-rwsr-xr-x 1 policykit root 19544 2008-11-30 09:43 polkit-set-default-helper*
-rwxr-xr-x 1 root root 19888 2008-11-30 09:43 polkitd*
If not, maybe reinstalling xorg-server would set the right permissions again.
Last edited by userlander (2009-03-22 19:09:31)
Offline
I reinstalled the xorg-server (and all of it's dependencies).
chowned' back some folders (above mentioned).
I still have to pkill the kdm and running the "startx" command.
btw:
1) quarkup@supernova ~$ cd /usr/
2) quarkup@supernova usr$ find /usr/ ! -user root -o ! -group root | xargs ls -l
total 300
drwxr-xr-x 3 root root 69632 Mar 22 19:11 bin
drwxr-xr-x 2 root root 4096 Mar 17 11:02 games
drwxr-xr-x 336 root root 53248 Mar 22 18:25 include
drwxr-xr-x 127 root root 135168 Mar 22 18:25 lib
drwxr-xr-x 3 root root 4096 Mar 21 15:57 libexec
drwxr-xr-x 11 root root 4096 Mar 17 18:33 local
drwxr-xr-x 8 root root 4096 Fev 28 22:36 man
drwxr-xr-x 2 root root 12288 Mar 22 17:47 sbin
drwxr-xr-x 180 root root 4096 Mar 22 17:46 share
drwxr-xr-x 4 root root 4096 Mar 10 11:58 src
lrwxrwxrwx 1 root root 6 Jan 11 14:32 var -> ../var
3) quarkup@supernova usr$ la
total 308K
drwxr-xr-x 12 root 4,0K 19/Mar/2009 .
drwxr-xr-x 21 root 4,0K 17/Mar/2009 ..
drwxr-xr-x 3 root 68K 22/Mar/2009 bin
drwxr-xr-x 2 root 4,0K 17/Mar/2009 games
drwxr-xr-x 336 root 52K 22/Mar/2009 include
drwxr-xr-x 127 root 132K 22/Mar/2009 lib
drwxr-xr-x 3 root 4,0K 21/Mar/2009 libexec
drwxr-xr-x 11 root 4,0K 17/Mar/2009 local
drwxr-xr-x 8 root 4,0K 28/Fev/2009 man
drwxr-xr-x 2 root 12K 22/Mar/2009 sbin
drwxr-xr-x 180 root 4,0K 22/Mar/2009 share
drwxr-xr-x 4 root 4,0K 10/Mar/2009 src
lrwxrwxrwx 1 root 6 11/Jan/2009 var -> ../var
Last edited by quarkup (2009-03-22 19:49:39)
If people do not believe that mathematics is simple, it is only because they do not realize how complicated life is.
Simplicity is the ultimate sophistication.
Offline