Ubuntu Pastebin

Paste from deeps at Fri, 11 Mar 2016 11:19:19 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
root@talented:/home/deeps/testperms# echo baa > moo
root@talented:/home/deeps/testperms# cat moo
baa
root@talented:/home/deeps/testperms# ls -lsa
total 20
 4 drwxr-xr-x  2 deeps deeps  4096 Mar 11 11:17 .
12 drwxr-xr-x 23 deeps deeps 12288 Mar 11 11:17 ..
 4 -rw-r--r--  1 root  root      4 Mar 11 11:17 moo
root@talented:/home/deeps/testperms# exit
deeps@talented:~/testperms$ echo meow >> moo
-bash: moo: Permission denied
deeps@talented:~/testperms$ ls -lsa
total 20
 4 drwxr-xr-x  2 deeps deeps  4096 Mar 11 11:17 .
12 drwxr-xr-x 23 deeps deeps 12288 Mar 11 11:17 ..
 4 -rw-r--r--  1 root  root      4 Mar 11 11:17 moo
deeps@talented:~/testperms$ mv moo oom
deeps@talented:~/testperms$ ls -lsa
total 20
 4 drwxr-xr-x  2 deeps deeps  4096 Mar 11 11:18 .
12 drwxr-xr-x 23 deeps deeps 12288 Mar 11 11:17 ..
 4 -rw-r--r--  1 root  root      4 Mar 11 11:17 oom
deeps@talented:~/testperms$ rm oom
rm: remove write-protected regular file `oom'? y
deeps@talented:~/testperms$ ls -lsa
total 16
 4 drwxr-xr-x  2 deeps deeps  4096 Mar 11 11:18 .
12 drwxr-xr-x 23 deeps deeps 12288 Mar 11 11:17 ..
deeps@talented:~/testperms$ 
Download as text