1 |
On Thu, Dec 27, 2012 at 01:49:01PM +0800, William Kenworthy wrote |
2 |
|
3 |
> Do you have the fstab line: |
4 |
> "none /dev/shm tmpfs defaults 0 0" |
5 |
|
6 |
I had an ancient version, which I've been copying to new installs for |
7 |
years. It was... |
8 |
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0 |
9 |
|
10 |
I changed over to your line, and rebooted, but no difference. I |
11 |
finally did things the hard way in fstab... |
12 |
|
13 |
none /dev/shm tmpfs rw,noatime,noexec,nosuid,nodev 0 0 |
14 |
|
15 |
...and in /etc/local.d/000.start I've added a chmod line... |
16 |
|
17 |
#!/bin/bash |
18 |
mount devpts |
19 |
chmod 1777 /dev/shm |
20 |
|
21 |
Note that on my system, "defaults" in fstab allows scripts to execute |
22 |
on /dev/shm, which is generally frowned on. "noexec" blocks that, |
23 |
notwithstanding the chmod 1777. Out of sheer curiousity, what happens |
24 |
when you create file /dev/shm/hello with 2 lines... |
25 |
|
26 |
#!/bin/bash |
27 |
echo "Hello World" |
28 |
|
29 |
...and then you |
30 |
|
31 |
chmod 755 /dev/shm/hello |
32 |
/dev/shm/hello |
33 |
|
34 |
Does it execute or come back with permission denied? |
35 |
|
36 |
-- |
37 |
Walter Dnes <waltdnes@××××××××.org> |
38 |
I don't run "desktop environments"; I run useful applications |