LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 11-20-2005, 11:32 PM   #1
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Rep: Reputation: 15
Unhappy DCOPserver/permission issues (still)


The saga continues....

On 11-11-2005 @ 03:19 PM I asked a question regarding an error when using users other than root fail to load with KDE. ~I recieved no responses ~

After countless attempts of trying to figure out:

Quote:
There was an error settuping up inter-process communications for KDE.
The message returned by the system was:

Could not read Network Connection List.
//: .DCOPserver_stealth__0

Please check that DCOPserver program is running.
{press the 'OK' button}

{new error pops up}

Quote:
Will not save configuration

configuration file "//.kde/share/config/kwinrc" not writable

configuration file "//.kde/share/config/kdeglobals" not writable
{press the 'OK' button}

... and working on the idea that it was a permission issue. I was humbled (again). I thought - 'k', I was good at "FUBAR", lets remove the users not working and add new ones. After all - if they don't work why keep them and with new users logic should agree that the errors would cease.

Unfortunately that idea failed as well.

I am still getting the same errors as the above

If there is anyone that has any suggestions, I am open to try anything. My fear now is that my /home is corrupted. The good news is that I do have /home on a seperate partition, I am just not sure how to repair or 're-install' if necessary.

Does anyone know if I could delete the KDE files and if they would re-write/create them selves. (probably not I am thinking - am new to this after all).

I have tried the command:
Code:
 rm -rf ~/.kde
(all that seemed to do was allow me to restart KDE for the / user.

And I am sure that it is related, I am still getting permission errors with all users other than /.

For example:
Code:
root@stealth:~# su thanotos
bash: /home/thanotos/.bashrc: Permission denied
thanotos@stealth:/root$ rm -rf ~/.kde
rm: cannot remove `/home/thanotos/.kde': Permission denied
 
Old 11-21-2005, 01:41 AM   #2
slaxnoob
Member
 
Registered: Apr 2004
Posts: 49

Rep: Reputation: 15
Try entering this in console / bash
Code:
cd ~
su 
(Enter your Password)
chown -R thanatos.users /home/thanotos/
& See if it helps
 
Old 11-21-2005, 01:58 AM   #3
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Re: DCOPserver/permission issues (still)

Quote:
Originally posted by Thanotos
Code:
thanotos@stealth:/root$ rm -rf ~/.kde
rm: cannot remove `/home/thanotos/.kde': Permission denied
How did you get into /root as a normal user?

Sounds like the permissions on your machine are completely wrong.

Code:
rob@here:~$ whoami
rob
rob@here:~$ cd /home
rob@here:/home$ ls -la
total 2
drwxr-xr-x   6 root  root   120 2005-10-11 23:35 ./
drwxr-xr-x  18 root  root   408 2005-11-19 23:02 ../
drwxr-xr-x   2 root  root    48 2005-07-31 11:28 ftp/
drwxr-xr-x  76 rob   users 3408 2005-11-21 18:34 rob/
rob@here:/home$ cd /root
-bash: cd: /root: Permission denied
rob@here:/home$ cd /
rob@here:/$ ls -la
total 18
drwxr-xr-x  18 root root  408 2005-11-19 23:02 ./
drwxr-xr-x  18 root root  408 2005-11-19 23:02 ../
drwxr-xr-x   2 root bin  2512 2005-09-20 07:29 bin/
drwxr-xr-x   2 root root  368 2005-11-18 23:24 boot/
drwxr-xr-x  13 root root    0 2005-11-21 18:33 dev/
drwxr-xr-x  44 root root 5240 2005-11-21 18:33 etc/
drwxr-xr-x   6 root root  120 2005-10-11 23:35 home/
drwxr-xr-x   5 root root 3304 2005-09-20 07:29 lib/
drwxr-xr-x  20 root root  504 2005-10-17 23:50 mnt/
drwxr-xr-x   8 root root  224 2005-05-17 06:15 opt/
dr-xr-xr-x  80 root root    0 2005-11-22 05:32 proc/
drwx------   6 root root  320 2005-11-18 23:24 root/
drwxr-xr-x   2 root bin  6696 2003-04-02 23:23 sbin/
drwxr-xr-x  10 root root    0 2005-11-22 05:32 sys/
drwxrwxrwt   8 root root  200 2005-11-21 18:36 tmp/
drwxr-xr-x  18 root root  544 2005-11-19 22:54 usr/
drwxr-xr-x  17 root root  456 2005-09-26 10:35 var/
rob@here:/$
The permissions of your directories should look something like the above (subsituting your own name of course).
 
Old 11-21-2005, 07:04 PM   #4
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
Code:
root@stealth:~# whoami
root
root@stealth:~# cd /home
root@stealth:/home# ls -la
total 5
drw-rw-rw-  10      777 root  216 2005-11-18 07:45 ./
drwxr-xr-x  18 root     root  432 2005-11-06 15:09 ../
drwx------   4 root     root   96 2005-11-06 18:43 .Trash-0/
drwx--x--x   2 forlamp  users  80 2005-11-04 18:40 forlamp/
drwxr-xr-x   2 root     root   48 2005-07-14 05:14 ftp/
drwx--x--x   2 pickel   users  80 2005-11-18 07:45 pickel/
drwx--x--x   2 test     users  80 2005-11-18 07:45 test/
drwx--x--x   2 thanotos root   80 2005-11-18 07:44 thanotos/
drwxr-xr-x   3     1000 users  72 2005-11-04 09:57 windows/
root@stealth:/home# cd /root
root@stealth:~# cd /
root@stealth:/# ls -la
total 91
drwxr-xr-x  18 root root    432 2005-11-06 15:09 ./
drwxr-xr-x  18 root root    432 2005-11-06 15:09 ../
drwxr-xr-x   2 root bin    2512 2005-11-06 17:48 bin/
drwxr-xr-x   2 root root    464 2005-11-05 02:59 boot/
drwxr-xr-x  15 root root  62592 2005-11-21 07:10 dev/
drwxr-xr-x  46 root root   4728 2005-11-21 07:10 etc/
drw-rw-rw-  10  777 root    216 2005-11-18 07:45 home/
drwxr-xr-x   5 root root   3304 2005-11-04 10:04 lib/
drwxr-xr-x   5 root root    120 2002-03-16 07:34 mnt/
drwxr-xr-x   4 root root     96 2005-07-29 00:30 opt/
dr-xr-xr-x  84 root root      0 2005-11-21 07:09 proc/
drwx--x---  16 root root    840 2005-11-21 07:16 root/
drwxr-xr-x   2 root bin    6704 2005-11-18 09:19 sbin/
drwxr-xr-x   2 root root     48 2004-05-12 04:03 sys/
drwxrwxrwt  21 root root   1384 2005-11-21 16:38 tmp/
drwxr-xr-x  18 root root    544 2002-02-26 01:38 usr/
drwxr-xr-x  16 root root    456 2003-03-14 01:00 var/
-rwxr-xr-x   1 1000 users   469 2005-11-06 15:06 wmamp3*
root@stealth:/#
Root is the only user that I can log into. All other attempts with other users gets the described error.
 
Old 11-21-2005, 07:15 PM   #5
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
oops forgot to add to slaxnoob's suggestion:

entered in the code as specified within / bash and then checked right away and here is the result:
Code:
root@stealth:/# chown -R thanotos.users /home/thanotos/
root@stealth:/# su thanotos
bash: /home/thanotos/.bashrc: Permission denied
thanotos@stealth:/$ whoami
thanotos
thanotos@stealth:/$ cd /home
bash: cd: /home: Permission denied
thanotos@stealth:/$
 
Old 11-21-2005, 07:19 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
what is the output with :
Code:
id thanotos
ls -ld /home
ls -ld /home/thanotos
?
 
Old 11-21-2005, 07:24 PM   #7
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I didn't pay attention to your previous outputs...

try as root :
Code:
chmod 0755 /home
(for some reason the executable bit to your /home dir was removed but
this bit is needed to access a directory...)
 
Old 11-22-2005, 06:22 AM   #8
Thanotos
Member
 
Registered: Oct 2005
Location: Nanaimo, BC. ~CANADA~
Posts: 70

Original Poster
Rep: Reputation: 15
Thank you everyone,

Keefaz your suggestion appears to have worked. If I could possibly be one more pain in the rear and get a speculation as to what happened and why changing the permissions worked?
 
Old 11-22-2005, 06:54 AM   #9
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Someone or some process changed the owner of /home to a user ID of 777 and removed the executable bit from that directory.
I would advise you too look into /etc/passwd to get a clue about what user account that could be.

Eric
 
Old 11-22-2005, 07:04 AM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I didn't notice that

Thanotos>you need to reset /home perms with : chown root:root /home

I guess it was owned to 777 uid because you did make a confusion between
chmod and chown, you did chown 777 /home to set the read write execute
bits, but chown change owner of the file so /home was owned by 777 uid
after the change (/home has to be owned by root user and root group)

Last edited by keefaz; 11-22-2005 at 07:05 AM.
 
Old 11-22-2005, 04:37 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
Quote:
Originally posted by keefaz
confusion between chmod and chown
That's a logical explanation.

Hey Thanatos, why are some of your users in the 'root' group?

They should be in the group called 'users', because using the 'root'
group can be dangerous. It could be part of the reason you've had
the problem with directory permissions.
 
  


Reply



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
powervr driver startup and permission issues Jonny_Michaels Mandriva 0 05-14-2004 07:27 PM
nfs permission issues. rtaft Linux - Networking 2 02-19-2004 02:20 PM
permission issues. neuroX Linux - Software 7 02-17-2004 06:40 AM
Mount and User permission issues Aerlock Linux - Newbie 9 10-19-2003 02:21 AM
Mandrake 9.1 running VMware 4, Permission issues Enigmus Linux - Software 2 08-10-2003 07:11 AM

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

All times are GMT -5. The time now is 04:35 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