[Bug 246956] New: gconf tries to use the wrong user.
https://bugzilla.novell.com/show_bug.cgi?id=246956 Summary: gconf tries to use the wrong user. Product: openSUSE 10.2 Version: Final Platform: PC OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: robin.listas@telefonica.net QAContact: qa@suse.de Gnome in opensuse 10.2. Logged in as user "cer". When I start "gconf-editor" (for instance) I get these messages in the terminal I started it from: cer@nimrodel:~> gconf-editor ** (gconf-editor:5909): WARNING **: Owner of /tmp/orbit-cer2 is not the current user (gconf-editor:5909): GConf-WARNING **: Owner of /tmp/gconfd-cer2 is not the current user Notice that it is complaining about user "cer2", when I'm running as "cer", and "cer2" is not even logged in. I mean, "cer2" does exist, it is a valid user, but I'm running as "cer" and gnome has no business looking at any other user's files. These messages are also sent to syslog now and then. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=246956
User captain.magnus@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c1
Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=246956
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c2
Carlos Robinson
Does this still happen? I can't reproduce.
Weird. Certainly it does. Every time: cer@nimrodel:~> gedit (gedit:20014): GConf-WARNING **: Owner of /tmp/gconfd-cer2 is not the current user cer@nimrodel:~> gnome-about (gnome-about:20020): GConf-WARNING **: Owner of /tmp/gconfd-cer2 is not the current user cer@nimrodel:~> l /tmp/gconfd-cer2 ls: cannot open directory /tmp/gconfd-cer2: Permission denied cer@nimrodel:~> l /tmp/gconfd-cer total 36 drwx------ 3 cer users 4096 2008-03-06 14:42 ./ drwxrwxrwt 77 root root 28672 2008-03-07 12:11 ../ drwx------ 2 cer users 4096 2008-03-06 14:42 lock/ You can also see it in the bug report I made for bug 367920 here: https://bugzilla.novell.com/attachment.cgi?id=199287 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=246956
User captain.magnus@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c3
Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=246956
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c4
Carlos Robinson
Can you create a brand new user and again...
Ok... (I have cer, cer2 and cer3) I create, from yast, two new users, "kar" and "kar2", with the same password. Then, from the text console, I log in both (tty5 and tty6), then type in the console for "kar2": startx gnome -- :1 (I do not want to close now my current "cer" session) and exit the graphical session once fully loaded (for kar2). Then I repeat the procedure for "kar", start an xterm, type "gedit"[enter]... and hey, presto! Gotcha! The error message dutifully appears: kar@nimrodel:~> gedit (gedit:21717): GConf-WARNING **: Owner of /tmp/gconfd-kar2 is not the current user kar@nimrodel:~> So, yes, I can reproduce it easily :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=246956
User hpj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c5
Hans Petter Jansson
https://bugzilla.novell.com/show_bug.cgi?id=246956
Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=246956
User captain.magnus@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c6
--- Comment #6 from Magnus Boman
https://bugzilla.novell.com/show_bug.cgi?id=246956
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c7
Carlos Robinson
Carlos, after you log out the first user, does its gconfd still hang around in the process list? If it does, can you kill it and see if the problem persists when logging in the other user?
I don't think so, I don't normally log as "cer2". I'll check: cer@nimrodel:~> ps afxu| grep gconfd cer 23061 0.0 0.0 2076 700 pts/18 S+ 14:37 0:00 | | \_ grep gconfd cer 29510 0.0 1.2 16828 12688 ? S 01:34 0:06 /usr/lib/GConf/2/gconfd-2 4 root 20678 0.0 0.2 4780 2956 ? S 12:43 0:00 /usr/lib/GConf/2/gconfd-2 20 kar 21533 0.0 1.1 13676 11920 tty5 S 12:49 0:01 /usr/lib/GConf/2/gconfd-2 4 No. Only "cer" and "kar" are logged in (tty7 and tty8), but "cer2" and "kar2" are not.
Another possibility is that there's a strncmp() in the code that erroneously compares the first few letters of the shortest out of the two strings to be compared. I.e. "kar", "kar2", strlen ("kar"). Which would make it try to re-use the wrong directory.
That's my thought precisely. Notice that these users have only three letters in the names: I don't like to type that much. I haven't tried this with longer names, though. Anyway, it is a "warning", not an error. But it is so "curious" that I reported it; surely there is a programming error somewhere. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=246956
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c8
Vincent Untz
https://bugzilla.novell.com/show_bug.cgi?id=246956
User vuntz@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c9
--- Comment #9 from Vincent Untz
Looking at the code, it seems it's doing some things wrong. Would you be willing to test a patched rpm if I make one?
Or maybe not, I need to read the code more carefully :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=246956
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c10
--- Comment #10 from Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=246956
User hpj@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c11
Hans Petter Jansson
https://bugzilla.novell.com/show_bug.cgi?id=246956
User robin.listas@telefonica.net added comment
https://bugzilla.novell.com/show_bug.cgi?id=246956#c12
--- Comment #12 from Carlos Robinson
This doesn't affect you otherwise, right? I.e. it's just the weird warning message that's the problem.
Correct, AFAIK. But my very wild, educated guess, is that something is doing the wrong checks, which might lead at some time to some weird results.
Prioritizing as "low" tentatively.
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com