RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1297745 - /tmp is read-only for non-root
Summary: /tmp is read-only for non-root
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: rhel-server-atomic
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Colin Walters
QA Contact: Ladislav Jozsa
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-12 11:23 UTC by Marius Vollmer
Modified: 2020-04-29 15:20 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-29 15:20:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Marius Vollmer 2016-01-12 11:23:51 UTC
Description of problem:

Running rhel-atomic-cloud-7.2-10.x86_64.qcow2 gives me a /tmp that is read-only for non-root:

    # ls -rld /tmp /sysroot/tmp
    lrwxrwxrwx. 1 root root   11 Jan 12 09:10 /tmp -> sysroot/tmp
    drwxr-xr-t. 7 root root 4096 Jan 12 10:50 /sysroot/tmp

I would expect to get rwxrwxrwxt for /sysroot/tmp, as on Fedora Atomic.


This is an issue for the Cockpit integration tests.  These tests mostly run as a non-root wheel user.

Are non-root users not supposed to exist in a RHEL Atomic Host?  If so, we can change the tests to run as root (on RHEL-AH only).

Comment 2 Colin Walters 2016-01-12 15:17:42 UTC
We'll backport the patch from https://bugzilla.redhat.com/show_bug.cgi?id=1276775

Comment 5 Micah Abbott 2020-04-29 15:20:12 UTC
```
$ rpm-ostree status
State: idle; auto updates disabled
Deployments:
* ostree://rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                   Version: 7.8.0 (2020-03-27 12:03:52)
                    Commit: 0bbae7b8382b6228274909d26acf455738241115af3de44deac128348036f1ab

  ostree://rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard
                   Version: 7.7.3 (2019-11-19 15:23:12)
                    Commit: e0ac32316936b7e138a2f9bea407bf20124f34f519e8f7147df3edc69ca86296
$  ls -rld /tmp /sysroot/tmp
lrwxrwxrwx.  3 root root   11 Sep 23  2019 /tmp -> sysroot/tmp
drwxrwxrwt. 16 root root 4096 Apr 29 03:07 /sysroot/tmp
```


Note You need to log in before you can comment on or make changes to this bug.