lkml.org 
[lkml]   [2014]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] afs: proc cells and rootcell are writeable
Date

Further:

[root@andromeda ~]# touch /tmp/foo
[root@andromeda ~]# chmod 0444 /tmp/foo
[root@andromeda ~]# ls -l /tmp/foo
-r--r--r--. 1 root root 0 Jan 31 00:17 /tmp/foo
[root@andromeda ~]# echo hello >/tmp/foo
[root@andromeda ~]# ls -l /tmp/foo
-r--r--r--. 1 root root 6 Jan 31 00:17 /tmp/foo
[root@andromeda ~]#

But:

[root@andromeda ~]# su - dhowells
[dhowells@andromeda ~]$ touch /tmp/bar
[dhowells@andromeda ~]$ chmod 0444 /tmp/bar
[dhowells@andromeda ~]$ ls -l /tmp/bar
-r--r--r--. 1 dhowells dhowells 0 Jan 31 00:19 /tmp/bar
[dhowells@andromeda ~]$ echo hello >/tmp/bar
-bash: /tmp/bar: Permission denied

David


\
 
 \ /
  Last update: 2014-01-31 02:01    [W:0.107 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site