From: Mike Gilbert <floppym@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] /dev/shm mode 1777
Date: Fri, 3 Oct 2014 23:00:08 -0400 [thread overview]
Message-ID: <CAJ0EP42v73-9XC_8eUgURVAVqiBmkreK6-kEt-cWfeBsxoEPVw@mail.gmail.com> (raw)
In-Reply-To: <20141004022250.GA1792@syscon7>
On Fri, Oct 3, 2014 at 10:22 PM, Joseph <syscon780@gmail.com> wrote:
> I'm getting an error message during emerge:
> * configure has detected that the sem_open function is broken.
> * Please ensure that /dev/shm is mounted as a tmpfs with mode 1777.
> * ERROR: dev-lang/python-3.3.5-r1::gentoo failed (configure phase):
>
> my /dev/shm is mounted as drwxr-xr-x 17 root root 4020 Oct 3 08:57
> shm
>
> and it should be:
> drwxrwxrwt 2 root root 100 Sep 29 09:25 shm
>
> I've already change in fstab:
> from:
> shm /dev/shm devtmpfs nodev,nosuid,noexec
> 0 0
>
> to:
> shm /dev/shm tmpfs
> defaults,nodev,nosuid,mode=1777 0 0
>
> Is it OK to run:
> umount shm
> mount shm
>
> This is a remount system, so I want to make sure I'm not making a mistake.
>
Yes, that should be fairly safe to run. The only risk is if you have
some application running which has files open on it; but umount should
give you an error in that case.
Also, you can/should remove that fstab entry entirely once you have
remounted it; both openrc and systemd will automatically mount
/dev/shm with proper permissions if it is missing from fstab.
next prev parent reply other threads:[~2014-10-04 3:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-04 2:22 [gentoo-user] /dev/shm mode 1777 Joseph
2014-10-04 3:00 ` Mike Gilbert [this message]
2014-10-04 3:42 ` Joseph
2014-10-04 3:48 ` Joseph
2014-10-04 15:43 ` Mike Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ0EP42v73-9XC_8eUgURVAVqiBmkreK6-kEt-cWfeBsxoEPVw@mail.gmail.com \
--to=floppym@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox