Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22929 - /tmp has the wrong permissions during install
Summary: /tmp has the wrong permissions during install
Status: RESOLVED DUPLICATE of bug 24551
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Release Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 08:21 UTC by Sjors Robroek
Modified: 2005-07-17 13:06 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 Sjors Robroek 2003-06-16 08:21:18 UTC
When a separate partition is mounted here during install, the /tmp directory in
the install tarball can't overwrite the mounted one, and thus /tmp keeps the
permissions of the created directory (0644), instead of the correct permissions
(1777). This can cause problems to a lot of programs, including gdm, kdm, X, but
also apache and other server-software which create temp files and run unprivileged.

Simple solution: chmod 1777 /tmp
Comment 1 Jorge Paulo (RETIRED) gentoo-dev 2003-06-16 18:31:31 UTC
Can someone confirm this?
I'll then add a note to the install doc.
Comment 2 Sjors Robroek 2003-06-17 01:12:53 UTC
There was a thread on the mailing list: check out the archives, it solved someone's problems there. It all depends on wether or not you have the /tmp partition mounted when you extract the stagex tarball
Comment 3 Jorge Paulo (RETIRED) gentoo-dev 2003-06-22 17:13:03 UTC
Can you provide the link to the mailing list thread?
Alternatively, can you please post the email with the solution here?
Comment 4 Sjors Robroek 2003-06-23 00:01:10 UTC
http://search.gmane.org/search.php?query=freshly+installed+root+gdm&group=gmane.linux.gentoo.user&sort=date&email=&page=2

gives you the thread

simple solution to this problem: chmod 1777 /tmp or don't mount /tmp until after you extracted the install stage
Comment 5 Jorge Paulo (RETIRED) gentoo-dev 2003-06-23 16:55:04 UTC
I can't see how this would fit in the installation guide.  Instead, I propose to include the following in the FAQ under the Installation chapter:

---
I have /tmp in a separate partition.  What precautions should I take?

When /tmp is mounted in a separate partition during install, the /tmp directory in the install tarball can't overwrite the mounted one.  Thus /tmp keeps the
permissions of the created directory (0644) instead of being set with the correct permissions (1777). This can cause problems to a lot of programs including gdm, kdm, X and other server-software, such as apache, which create temp files and run unprivileged. The simple solution is to manually set the correct permissions as follows: 

# chmod 1777 /tmp
---

Thanks to Sjors Robroek for the blurb that I'm proposing to add to the FAQ.

If there are no objections/corrections, I'll make the changes and commit within a few days.
Comment 6 John Davis (zhen) (RETIRED) gentoo-dev 2003-06-24 06:10:22 UTC
Instead of the FAQ, how about we get in touch with the LiveCD folks and fix the actual problem?
Comment 7 Jorge Paulo (RETIRED) gentoo-dev 2003-06-24 18:05:20 UTC
As per zhen's suggestion... reassigning to the LiveCD crew.  Perhaps they can address this issue.
Comment 8 Douglas R. Hoffman 2003-10-17 00:23:14 UTC
I this the same as Bug 24551?
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-10-17 00:46:10 UTC

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