LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-17-2005, 01:34 PM   #1
javamdk
Member
 
Registered: Jul 2004
Location: Indiana
Distribution: Slackware 10.1, Debian
Posts: 64

Rep: Reputation: 15
Unhappy KDE wont log in! only root


I'm not sure what happend or what I may have done -- but when I rebooted X server and re-logged into KDE (starx) I received this nasty error:
--
Could not start ksmserver. Check your installation.

No write access to $HOME directory (/home/joer)

KDE is unable to start
DCOPClient::attachInternal. Attached failed could not open network socket.

xauth:timeout in locking authority file /home/joer/.Xauthority
--
Root is the only account I can login into KDE with -- the only change I made was to /etc/X11/xorg.conf and fixed my mouse which works perfectly under root -- so I don't think it could have messed up joer

What's happening here? Why? How would I go about to remedy this?

Thanks
 
Old 03-17-2005, 01:36 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What are the permissions on your home directory?
 
Old 03-17-2005, 01:40 PM   #3
javamdk
Member
 
Registered: Jul 2004
Location: Indiana
Distribution: Slackware 10.1, Debian
Posts: 64

Original Poster
Rep: Reputation: 15
Permission for home folder:
drwxr-xr-x 4 root root 96 2005-03-16 11:44 home/

permission set for my files in /home/joer/:

lrwxrwxrwx 1 joer users 30 2005-03-16 12:21 .DCOPserver_mars_:0 -> /home/joer/.DCOPserver_mars__0
-rw-r--r-- 1 joer users 51 2005-03-16 12:21 .DCOPserver_mars__0
-rw------- 1 joer users 185 2005-03-16 12:21 .ICEauthority
-rw------- 1 joer users 98 2005-03-16 12:20 .Xauthority
-rw------- 1 joer users 139 2005-03-17 12:29 .bash_history
-rw------- 1 joer users 16 2005-03-16 12:28 .esd_auth
-rw-r--r-- 1 joer users 307 2005-03-16 18:22 .fonts.conf
drwx------ 5 joer users 288 2005-03-17 12:06 .gaim/
drwx------ 4 joer users 96 2005-03-16 12:31 .gconf/
drwx------ 2 joer users 80 2005-03-17 12:07 .gconfd/
drwx------ 3 joer users 80 2005-03-16 12:37 .gnome/
drwx------ 4 joer users 168 2005-03-16 12:26 .gnome2/
drwx------ 2 joer users 48 2005-03-16 12:25 .gnome2_private/
drwx------ 4 joer users 192 2005-03-16 12:21 .kde/
-rw------- 1 joer users 476 2005-03-16 18:23 .kderc
drwxr-xr-x 3 joer users 72 2005-03-16 12:50 .kpackage/
drwxr-xr-x 3 joer users 112 2005-03-16 12:21 .mcop/
drwx------ 3 joer users 128 2005-03-16 12:32 .mozilla/
drwxr-xr-x 2 joer users 176 2005-03-16 18:23 .qt/
-rw------- 1 joer users 522 2005-03-16 12:26 .recently-used
-rw-r--r-- 1 joer users 3729 2005-03-16 11:44 .screenrc
drwx------ 2 joer users 80 2005-03-16 12:25 .xine/
drwxr-xr-x 4 joer users 168 2005-03-16 12:43 .xmms/
drwx------ 3 joer users 240 2005-03-16 12:44 Desktop/
 
Old 03-17-2005, 02:07 PM   #4
javamdk
Member
 
Registered: Jul 2004
Location: Indiana
Distribution: Slackware 10.1, Debian
Posts: 64

Original Poster
Rep: Reputation: 15
Fixed but what happend??

Hey guys... I was able to fix the problem by:
Code:
chown -R -c joer /home/joer
...why did the permission's get screwy?

/edit/

Last edited by javamdk; 03-17-2005 at 02:11 PM.
 
Old 03-17-2005, 04:23 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I don't know. What were they? You didn't post them for /home/joer.
 
Old 03-17-2005, 09:32 PM   #6
javamdk
Member
 
Registered: Jul 2004
Location: Indiana
Distribution: Slackware 10.1, Debian
Posts: 64

Original Poster
Rep: Reputation: 15
I forgot what they were previously set to -- but apparently it wasn't executable or writable. It's strange to see that happen, when I don't recall doing anything with the permissions.
 
Old 04-16-2005, 05:42 AM   #7
rino.caldelli
Member
 
Registered: Apr 2005
Location: perugia
Distribution: ubuntu
Posts: 181

Rep: Reputation: 31
Apparently Slackware 10.1 has some problems with the permission of normal users...
If you issue
ls -l
in the directory /home every directory should be owned by the respective owner who should have rwx rights.
Very often instead in slackware you see

drwxr-xr-x 21 root root 4096 2005-04-16 11:30 user

here the directory user is owned by root who has rwx rights and not by user who only has r rights
 
Old 05-16-2005, 05:44 AM   #8
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Quote:
Originally posted by rinonapo
Apparently Slackware 10.1 has some problems with the permission of normal users...
If you issue
ls -l
in the directory /home every directory should be owned by the respective owner who should have rwx rights.
Very often instead in slackware you see

drwxr-xr-x 21 root root 4096 2005-04-16 11:30 user

here the directory user is owned by root who has rwx rights and not by user who only has r rights
Does anyone know why this is? I often have to reset the owner permissions on my /home/username directory. I regularly get an .ICEauthority error that requires me to do this. Then all is fine -- until the next time it happens.

I'm running Slackware current with xfce4 4.2.1.1, though I occasionally use KDE 3.4.

Last edited by dhave; 05-16-2005 at 05:48 AM.
 
Old 05-16-2005, 12:24 PM   #9
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
I have not ever seen this probem, guys. Here's my /home
Code:
drwxr-xr-x   2 root root    48 2004-09-18 18:49 ftp/
drwx--x--x   3 ian  users  184 2005-03-15 02:11 ian/
drwx--x--x   2 kacy users   80 2005-02-01 02:21 kacy/
drwx--x--x  62 mike users 3440 2005-05-16 02:42 mike/
--Shade
 
Old 05-16-2005, 12:43 PM   #10
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Well, if I'm to believe my Google results, Slackware's not the only distro affected by this:

[fc3]
http://www.linuxforums.org/forum/topic-41883.html

[redhat]
https://www.redhat.com/archives/fedo.../msg01634.html

[debian]
http://lists.debian.org/debian-user-.../msg00368.html

etc., etc.

Lots of questions. Does anybody have an answer?
 
Old 05-16-2005, 12:54 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Maybe you used sudo or kdesu, those tools keep the
environment variables of the user and set the uid to
root, so for example :

kdesu k3b
->k3b run under uid 0 (root) but will write config change
in the home user directory...so user config files become
owned by root and this begin to screw things
 
Old 05-17-2005, 05:40 AM   #12
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Quote:
Originally posted by dhave
Well, if I'm to believe my Google results, Slackware's not the only distro affected by this:



Lots of questions. Does anybody have an answer?
I noticed this "bug" in KDE starting with v. 3.2.x
it looks like they have not yet fixed it........
 
Old 05-17-2005, 09:32 AM   #13
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
Quote:
Originally posted by freakyg
I noticed this "bug" in KDE starting with v. 3.2.x
it looks like they have not yet fixed it........
I wonder if it could have anything to do with the way I upgrade and/or install KDE. I go out to single-user mode (init 1) as root before making changes to KDE. I had thought this was the recommended way, but perhaps somehow KDE isn't getting the message that my system actually does include a non-root user.

Sounds far-fetched, but maybe somebody can enlighten me.

Thanks.
 
Old 05-23-2005, 04:30 AM   #14
chaumurky
LQ Newbie
 
Registered: May 2005
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
Well what caused it for me was "user@computer:~$sudo vncserver :1" at an ssh terminal. If I had logged in as (or even su'd to) root it probably wouldn't have happened. I guess it accesed various files in my home directory as root and changed some ownership attributes. I'll not do that again.
 
Old 05-23-2005, 07:17 AM   #15
dhave
Member
 
Registered: Oct 2004
Location: still outside the Matrix
Distribution: Arch, formerly Gentoo and Slackware
Posts: 438

Rep: Reputation: 31
It turns out that what was causing the problem for me was to run Krusader as sudo. When I would do that, a .DCOPserver file would be created in my /home/username directory with root as its owner, and also ownership of the.ICEauthority file in the same directory would change from username to root.

For a couple of days I've been using kdesu to launch Krusader, and I haven't had the problem (yet).

I was surprised that I'd have this problem using sudo, but maybe there's something in the way I have sudo set up that causes the problem.

Note that I'm actually running XFCE4, but using a few KDE apps from within XFCE4. Maybe that was part of the problem, too.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't log in as root after KDE update ludwig W SUSE / openSUSE 2 05-04-2005 07:39 AM
why wont kde recobnise my root password? wisdom Linux - Software 1 02-18-2004 04:10 PM
Want to log into Root on Mandrake 9.1/KDE 3.1 Linz Linux - Newbie 7 12-23-2003 11:40 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM
Can't log in as root in KDE tearinox Linux - General 3 08-02-2003 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration