After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167030 - /tmp not cleaned up, which causes bad results if user's UID changes
/tmp not cleaned up, which causes bad results if user's UID changes
Status: RESOLVED DUPLICATE of bug 141138
Product: GConf
Classification: Deprecated
Component: gconf
2.8.x
Other All
: Normal critical
: ---
Assigned To: GConf Maintainers
GConf Maintainers
Depends on: 141138
Blocks:
 
 
Reported: 2005-02-11 08:59 UTC by olaf
Modified: 2008-05-08 21:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.7/2.8



Description olaf 2005-02-11 08:59:54 UTC
Steps to reproduce:
1. create user test
2. login with X in GNOME
3. logout
4. change UID for the user
5. change user's directory ownership to match new UID
6. login with X in GNOME
7. Terrible things happen


Stack trace:
This is caused by not cleaning the /tmp directory.
When using GNOME the following files/directories are created:
drwx------  3 olaf  users 17 Feb 11 09:33 gconfd-olaf
srwxr-xr-x  1 olaf users   0 Feb 11 09:33 mapping-olaf
drwx------  2 olaf  users 652 Feb 11 09:40 orbit-olaf

After finishing GNOME the created files/directories should be removed.

The second problem is that the errors produced by GNOME in this case are not
user friendly, you get many dialog boxes but no one with the exact cause.




Other information:
Comment 1 Luis Villa 2005-07-14 19:17:20 UTC
This is pretty ugly, I'll grant, but the nasty result is caused by a corner
case, right? retitling to make slightly more accurate.
Comment 2 Kjartan Maraas 2006-08-10 14:44:39 UTC
This is probably linked to bug 141138
Comment 3 Lubomir Rintel 2006-12-22 13:21:41 UTC
Consider this:

while (true); do touch /tmp/gconfd-$(tail -n1 /etc/passwd |awk -F: '{print
$1}'); done

It could render Gnome unusable for any newly created users.
Using a name /tmp/gconf-username is bad idea at all.

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=219279
Comment 4 Pier Gaetano Novara 2007-06-15 13:55:29 UTC
Is this error even present on unix (solaris 10) ?
Comment 5 Kjartan Maraas 2008-04-27 11:53:38 UTC
Don't see how this would be any different on Solaris than on Linux.
Comment 6 Ray Strode [halfline] 2008-04-28 14:34:40 UTC
I think Solaris uses a ramfs for /tmp so it's blown away at boot up (could be wrong).
Comment 7 Ray Strode [halfline] 2008-05-08 21:42:12 UTC
See attachment 110602 [details] [review] from bug 507310 for a potential solution to this.
Comment 8 Ray Strode [halfline] 2008-05-08 21:50:01 UTC

*** This bug has been marked as a duplicate of 141138 ***