Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev/shm permissions drwxr-xr-x root:root ?
Date: Thu, 27 Dec 2012 05:50:29
Message-Id: 50DBE14D.4020302@iinet.net.au
In Reply to: Re: [gentoo-user] /dev/shm permissions drwxr-xr-x root:root ? by Dale
1 On 27/12/12 11:19, Dale wrote:
2 > Walter Dnes wrote:
3 >> This may be related to me running mdev instead of udev. I've been
4 >> using /dev/shm for creating and deleting scratch files, to speed things
5 >> up when processing photographs with automated scripts. It used to work.
6 >> But now it no longer allows writes by anybody except root. A couple of
7 >> days ago, I did a big update, which resulted in devpts having to be
8 >> explicitly mounted. Since I run mdev instead of udev, the instruction
9 >> to "rc-update add udev-mount sysinit" doesn't work for me. Instead I
10 >> put an explicit "mount devpts" in /etc/local.d/000.start, which handles
11 >> the automounting. Anybody else seeing /dev/shm as root-only, or is this
12 >> an artifact of my weird setup?
13 >>
14 >
15 >
16 > I'm not real sure on what you are doing but, this is what mine is:
17 >
18 > root@fireball / # ls -al /dev/shm
19 > total 4
20 > drwxrwxrwt 2 root root 60 Dec 3 18:20 .
21 > drwxr-xr-x 18 root root 4400 Dec 26 18:56 ..
22 > -rwxr-xr-x 1 dale users 32 Dec 3 18:20 sem.lastpassffsemaphore
23 > root@fireball / #
24 >
25 > It seems that whatever file is there is owned by the person who created
26 > it. I use LastPass for my password manager so, I assume, that is what
27 > that is. Odd tho that I am not currently logged into LastPast but can't
28 > imagine what else could be named that.
29 >
30 > That help any? Can I get you any other info?
31 >
32 > Dale
33 >
34 > :-) :-)
35 >
36
37 moriah ~ # ls -al /dev/shm
38 total 128
39 drwxrwxrwt 2 root root 80 Dec 27 13:39 .
40 drwxr-xr-x 17 root root 4900 Dec 27 12:51 ..
41 -r-------- 1 wdk wdk 67108904 Dec 27 13:39 pulse-shm-259503987
42 -r-------- 1 wdk wdk 67108904 Dec 27 13:39 pulse-shm-3719994179
43 moriah
44
45 Do you have the fstab line:
46 "none /dev/shm tmpfs defaults 0 0"
47
48
49 I also grepped /usr/lib/udev/* and no shm shows in the udev rules there.
50
51 The contents of the dir are as Dale sees - I have a couple of
52 BillK

Replies

Subject Author
Re: [gentoo-user] /dev/shm permissions drwxr-xr-x root:root ? Walter Dnes <waltdnes@××××××××.org>