Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] /dev/shm permissions drwxr-xr-x root:root ?
Date: Sat, 29 Dec 2012 01:25:01
Message-Id: 50DE4615.50506@gmail.com
In Reply to: Re: [gentoo-user] /dev/shm permissions drwxr-xr-x root:root ? by Walter Dnes
1 Walter Dnes wrote:
2 > On Fri, Dec 28, 2012 at 02:10:26PM +0800, William Kenworthy wrote
3 >> On 28/12/12 11:25, Walter Dnes wrote:
4 >>> chmod 755 /dev/shm/hello
5 >>> /dev/shm/hello
6 >> as a user (not root)
7 >>
8 >> wdk@moriah /home/vm/qemu/mail $ vi /dev/shm/hello
9 >> wdk@moriah /home/vm/qemu/mail $ chmod 755 /dev/shm/hello
10 >> wdk@moriah /home/vm/qemu/mail $ /dev/shm/hello
11 >> Hello World
12 >> wdk@moriah /home/vm/qemu/mail $
13 >>
14 >> worked fine.
15 >>
16 >> and
17 >>
18 >> moriah ~ # mount|grep shm
19 >> none on /dev/shm type tmpfs (rw,relatime)
20 >> moriah ~ #
21 > Are you on regular udev? I thought that /dev/shm was supposed to be
22 > noexec as a security measure.
23 >
24
25 Here is some info on mine, while you are waiting on William.
26
27 root@fireball / # ls -al /dev/shm
28 total 4
29 drwxrwxrwt 2 root root 60 Dec 3 18:20 .
30 drwxr-xr-x 17 root root 4360 Dec 28 15:30 ..
31 -rwxr-xr-x 1 dale users 32 Dec 3 18:20 sem.lastpassffsemaphore
32 root@fireball / # equery list udev
33 * Searching for udev ...
34 [IP-] [ ] sys-fs/udev-171-r9:0
35 root@fireball / #
36
37 Does that help any? If I read that correctly, it is executable. At
38 least it is for the one that is there.
39
40 Dale
41
42 :-) :-)
43
44 --
45 I am only responsible for what I said ... Not for what you understood or how you interpreted my words!

Replies

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