Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124608 - Gentoo installer: incorrect permissions on /var/tmp
Summary: Gentoo installer: incorrect permissions on /var/tmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Release Media
Classification: Unclassified
Component: Installer (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux Installer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 00:49 UTC by Robert S
Modified: 2006-03-24 13:46 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert S 2006-03-02 00:49:53 UTC
I have just installed 2006.0 from the LiveCD using the text-mode installer (installer-dialog I believe).

I get the following permissions on /var/tmp:

# ls -l /var/ |grep tmp
drwxr-xr-x  3 root root 4096 Mar  1 00:43 tmp

This creates errors when non-root users try to write to this directory.  eg. startx reports

The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Cannot open "/var/tmp/server-0.xkm" to write keyboard description
>                   Exiting
(EE) Couldn't load XKB keymap, falling back to pre-XKB keymap
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2006-03-04 08:40:23 UTC
Lovely. This one is going to be fun to fix. I bet binary packages have the same problem. Although, it wouldn't show up since the directory already exists in the stage tarballs with the proper permissions.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2006-03-04 20:20:19 UTC
Ok, I've implemented a two-fold fix for this. First, in copy_pkg_to_chroot(), I loop through the directories in the image dir, check the owner/group and mode on the original, and then apply it to the directory in the image dir. This will help for any other directories that may show this particular problem.

The second part of the fix is creating /tmp, /var/tmp, and /var/lib/portage if they don't exist. It looks like portage is the one that normally creates these directories. I lifted and modified the code from portage to create these directories with the proper permissions.

Both fixes are in CVS. You can try it out by opening a terminal on the LiveCD and doing '/opt/installer/misc/updategtkfe'.
Comment 3 Jeffrey Forman (RETIRED) gentoo-dev 2006-03-24 13:46:38 UTC
Moving to Release Media/Installer.