Messages in this thread | | | From | David Howells <> | Subject | Re: [PATCH] afs: proc cells and rootcell are writeable | Date | Fri, 31 Jan 2014 00:20:02 +0000 |
| |
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
| |