Project

General

Profile

Bug #2015 ยป wtf.txt

lukeshu, 2018-09-27 12:24 AM

 
1
[000] lukeshu@winston:~
2
$ df .
3
Filesystem     1K-blocks     Used Available Use% Mounted on
4
/dev/vda3       98238012 72236341  20754695  78% /
5
[000] lukeshu@winston:~
6
$ grep /dev/vda3 /proc/mounts                                                                                          
7
/dev/vda3 / ext4 rw,relatime,data=ordered 0 0
8
/dev/vda3 /var/spool/cron ext4 rw,relatime,data=ordered 0 0
9
[000] lukeshu@winston:~
10
$ mkdir testdir                                                                                                       
11
[000] lukeshu@winston:~
12
$ chgrp repo testdir
13
[000] lukeshu@winston:~
14
$ chmod g+s testdir
15
[000] lukeshu@winston:~
16
$ stat testdir
17
  File: testdir
18
  Size: 1024            Blocks: 2          IO Block: 1024   directory
19
Device: fe03h/65027d    Inode: 21911569    Links: 2
20
Access: (2755/drwxr-sr-x)  Uid: ( 1015/ lukeshu)   Gid: (  987/    repo)
21
Access: 2018-09-26 23:57:41.051436286 +0000
22
Modify: 2018-09-26 23:57:41.051436286 +0000
23
Change: 2018-09-26 23:57:55.681473468 +0000
24
 Birth: -
25
[000] lukeshu@winston:~
26
$ getfacl testdir
27
# file: testdir
28
# owner: lukeshu
29
# group: repo
30
# flags: -s-
31
user::rwx
32
group::r-x
33
other::r-x
34

    
35
[000] lukeshu@winston:~
36
$ mkdir testdir/subdir
37
[000] lukeshu@winston:~
38
$ stat testdir/subdir
39
  File: testdir/subdir
40
  Size: 1024            Blocks: 2          IO Block: 1024   directory
41
Device: fe03h/65027d    Inode: 21911570    Links: 2
42
Access: (2755/drwxr-sr-x)  Uid: ( 1015/ lukeshu)   Gid: (  987/    repo)
43
Access: 2018-09-26 23:58:08.851506880 +0000
44
Modify: 2018-09-26 23:58:08.851506880 +0000
45
Change: 2018-09-26 23:58:08.851506880 +0000
46
 Birth: -
47
[000] lukeshu@winston:~
48
$ getfacl testdir/subdir
49
# file: testdir/subdir
50
# owner: lukeshu
51
# group: repo
52
# flags: -s-
53
user::rwx
54
group::r-x
55
other::r-x
56

    
57
[000] lukeshu@winston:~
58
$ df /srv/repo/main/other/rcn-libre/patches
59
Filesystem     1K-blocks      Used Available Use% Mounted on
60
/dev/vda4      392553233 210881441 160722442  57% /srv
61
[000] lukeshu@winston:~
62
$ grep /dev/vda4 /proc/mounts                                                                                         
63
/dev/vda4 /srv ext4 rw,nodev,relatime,data=ordered 0 0
64
/dev/vda4 /var/lib/mailman ext4 rw,nodev,relatime,data=ordered 0 0
65
/dev/vda4 /var/lib/postgres ext4 rw,nodev,relatime,data=ordered 0 0
66
/dev/vda4 /var/lib/mysql ext4 rw,nodev,relatime,data=ordered 0 0
67
[000] lukeshu@winston:~
68
$ stat /srv/repo/main/other/rcn-libre/patches
69
  File: /srv/repo/main/other/rcn-libre/patches
70
  Size: 7168            Blocks: 16         IO Block: 1024   directory
71
Device: fe04h/65028d    Inode: 75104358    Links: 246
72
Access: (2775/drwxrwsr-x)  Uid: (10001/    repo)   Gid: (  987/    repo)
73
Access: 2018-09-26 23:47:43.639747397 +0000
74
Modify: 2018-09-26 23:50:03.860196185 +0000
75
Change: 2018-09-26 23:50:03.860196185 +0000
76
 Birth: -
77
[000] lukeshu@winston:~
78
$ getfacl /srv/repo/main/other/rcn-libre/patches
79
getfacl: Removing leading '/' from absolute path names
80
# file: srv/repo/main/other/rcn-libre/patches
81
# owner: repo
82
# group: repo
83
# flags: -s-
84
user::rwx
85
group::rwx
86
other::r-x
87

    
88
[000] lukeshu@winston:~
89
$ stat /srv/repo/main/other/rcn-libre/patches/testdir                                                                              
90
stat: cannot stat '/srv/repo/main/other/rcn-libre/patches/testdir': No such file or directory
91
[001] lukeshu@winston:~
92
$ mkdir /srv/repo/main/other/rcn-libre/patches/testdir
93
[000] lukeshu@winston:~
94
$ stat /srv/repo/main/other/rcn-libre/patches/testdir
95
  File: /srv/repo/main/other/rcn-libre/patches/testdir
96
  Size: 1024            Blocks: 2          IO Block: 1024   directory
97
Device: fe04h/65028d    Inode: 75303719    Links: 2
98
Access: (0755/drwxr-xr-x)  Uid: ( 1015/ lukeshu)   Gid: (  987/    repo)
99
Access: 2018-09-26 23:59:38.421732729 +0000
100
Modify: 2018-09-26 23:59:38.421732729 +0000
101
Change: 2018-09-26 23:59:38.421732729 +0000
102
 Birth: -
103
[000] lukeshu@winston:~
104
$ getfacl /srv/repo/main/other/rcn-libre/patches/testdir
105
getfacl: Removing leading '/' from absolute path names
106
# file: srv/repo/main/other/rcn-libre/patches/testdir
107
# owner: lukeshu
108
# group: repo
109
user::rwx
110
group::r-x
111
other::r-x
112

    
113
[000] lukeshu@winston:~
114
$ 
    (1-1/1)