sandervanvugt

Untitled

Sep 2nd, 2020
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.95 KB | None | 0 0
  1. 1 visudo
  2. 2 id student
  3. 3 usermod -aG wheel student
  4. 4 id student
  5. 5 exit
  6. 6 journalctl
  7. 7 exit
  8. 8 cd /etc
  9. 9 ls
  10. 10 cd /proc
  11. 11 ls
  12. 12 touch hello
  13. 13 less cpuinfo
  14. 14 cd sys
  15. 15 ls
  16. 16 cd net
  17. 17 ls
  18. 18 cd ipv6
  19. 19 ls
  20. 20 cd cond
  21. 21 ls
  22. 22 cd conf
  23. 23 ls
  24. 24 cd all
  25. 25 ls
  26. 26 ip a
  27. 27 echo 1 > disable_ipv6
  28. 28 ip a
  29. 29 pwd
  30. 30 cd /dev
  31. 31 ls
  32. 32 cd
  33. 33 echo 1 > muyfule
  34. 34 cat muyfule
  35. 35 cd /var
  36. 36 ls
  37. 37 cd log
  38. 38 ls
  39. 39 less /etc/passwd
  40. 40 cd /dev
  41. 41 ls
  42. 42 ls -l
  43. 43 cd
  44. 44 man hier
  45. 45 countdown 13
  46. 46 cd /
  47. 47 ls -l
  48. 48 cd /bin
  49. 49 ls
  50. 50 pwd
  51. 51 ls | wc
  52. 52 cd /usr/bin
  53. 53 ls | wc
  54. 54 cd
  55. 55 ls -il /etc/hosts
  56. 56 cd /boot
  57. 57 mount | grep ext4
  58. 58 ls -il
  59. 59 debugfs /boot
  60. 60 debugfs /dev/sda1
  61. 61 cd
  62. 62 ls -il /etc/hosts
  63. 63 ln /etc/hosts myhosts
  64. 64 ls -il /etc/hosts myhosts
  65. 65 echo hello >> /etc/hosts
  66. 66 ls -il /etc/hosts myhosts
  67. 67 ln -s /etc/hosts myshosts
  68. 68 ls -il /etc/hosts myhosts myshosts
  69. 69 cat myshosts
  70. 70 rm /etc/hosts
  71. 71 cat myhosts
  72. 72 cat myshosts
  73. 73 ls -il /etc/hosts myhosts myshosts
  74. 74 ln myhosts /etc/hosts
  75. 75 history
  76. 76 ln /etc myetc
  77. 77 ln -s /etc myetc
  78. 78 ln /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
  79. 79 ln -s /boot/vmlinuz-4.18.0-193.el8.x86_64 mykernel
  80. 80 history
  81. 81 mount
  82. 82 mount | grep '^/'
  83. 83 cd /boot
  84. 84 ls
  85. 85 cd /
  86. 86 umount /dev/sda1
  87. 87 cd boot
  88. 88 ls
  89. 89 cd ..
  90. 90 mount /dev/sda1 /boot
  91. 91 ls
  92. 92 cd boot
  93. 93 ls
  94. 94 mount /dev/sdb1 /mnt
  95. 95 man -k user
  96. 96 man man
  97. 97 man apropos
  98. 98 mandb
  99. 99 man -k user
  100. 100 man -k user | wc
  101. 101 man man
  102. 102 man -k user | grep 8
  103. 103 man -k user | grep 8 | wc
  104. 104 man useradd
  105. 105 man ls
  106. 106 info '(coreutils) ls invocation'
  107. 107 find / -name "hosts"
  108. 108 find / -name "*hosts*"
  109. 109 find / -user linda
  110. 110 find / -size +106M
  111. 111 find / -size +106M 2>/dev/null
  112. 112 exit
  113. 113 history
  114. 114 less /etc/passwd
  115. 115 less /etc/shadow
  116. 116 man 5 shadow
  117. 117 passwd --help
  118. 118 vim /etc/login.defs
  119. 119 cd /etc/skel
  120. 120 ls -a
  121. 121 echo hello >hello.txt
  122. 122 pwd
  123. 123 useradd bill
  124. 124 grep bill /etc/passwd
  125. 125 grep bill /etc/shadow
  126. 126 passwd --help
  127. 127 passwd -l linda
  128. 128 grep linda /etc/passwd
  129. 129 grep linda /etc/shadow
  130. 130 passwd -u linda
  131. 131 chage linda
  132. 132 grep linda /etc/shadow
  133. 133 vim /etc/login.defs
  134. 134 groupadd students
  135. 135 groupadd profs
  136. 136 useradd -G sales lisa
  137. 137 useradd -G students lisa
  138. 138 useradd -G students linda
  139. 139 usermod -aG student linda
  140. 140 useradd -G profs anna
  141. 141 useradd -G profs anouk
  142. 142 useradd --help
  143. 143 usermod --help
  144. 144 grep student /etc/groups
  145. 145 grep student /etc/group
  146. 146 id linda
  147. 147 usermod -G students linda
  148. 148 usermod --help
  149. 149 vigr
  150. 150 cd
  151. 151 su - linda
  152. 152 mkdir /data/profs
  153. 153 mkdir /data/profs -p
  154. 154 cd /data
  155. 155 ls -l
  156. 156 chown profs profs
  157. 157 chgrp profs profs
  158. 158 ls -l
  159. 159 chmod 770 profs/
  160. 160 cd /home/linda
  161. 161 touch rootfile1
  162. 162 touch rootfile2
  163. 163 touch rootfile3
  164. 164 su - linda
  165. 165 pwd
  166. 166 vim playme
  167. 167 ls -l
  168. 168 chmod +x playme
  169. 169 su - linda
  170. 170 chmod u+s playme
  171. 171 ls -l
  172. 172 su - linda
  173. 173 vim playme
  174. 174 su - linda
  175. 175 ls -l /etc/shadow
  176. 176 ls -l $(which passwd)
  177. 177 find / -perm /4000
  178. 178 mkdir -p /data/profs
  179. 179 cd /data
  180. 180 ls -l
  181. 181 su - anouk
  182. 182 usermod -aG profs anouk
  183. 183 id anna
  184. 184 cd profs/
  185. 185 su - anouk
  186. 186 su - anna
  187. 187 chmod g+s .
  188. 188 ls -l .
  189. 189 ls -ld .
  190. 190 touch root
  191. 191 ls -l
  192. 192 su - anouk
  193. 193 su - anna
  194. 194 chmod +t .
  195. 195 ls -ld .
  196. 196 su - anna
  197. 197 chown anna .
  198. 198 ls -ld .
  199. 199 su - anna
  200. 200 cd /data/nna
  201. 201 cd /home/anna/
  202. 202 touch hello
  203. 203 ls -l
  204. 204 ls -ld .
  205. 205 cd /data/student
  206. 206 mkdir /data/students
  207. 207 chown :students /data/students
  208. 208 cd /data
  209. 209 ls -l
  210. 210 chmod 3770 students/
  211. 211 ls -l
  212. 212 chmos o+x students/
  213. 213 chmod o+x students/
  214. 214 ls -l
  215. 215 chmod g-x students
  216. 216 ls -l
  217. 217 chmod 3770 students/
  218. 218 ls -l
  219. 219 chmod -t *
  220. 220 ls -l
  221. 221 cd students/
  222. 222 touch rootfile
  223. 223 chmod 000 rootfile
  224. 224 su - lisa
  225. 225 cd
  226. 226 countdown 12
  227. 227 cd /data
  228. 228 ls -l
  229. 229 tree
  230. 230 su - anna
  231. 231 su - lisa
  232. 232 tree
  233. 233 cd students/
  234. 234 ls -l
  235. 235 cd ..
  236. 236 getfacl -m -R g:profs:rx /data/students
  237. 237 setfacl -m -R g:profs:rx /data/students
  238. 238 setfacl -R -m g:profs:rx /data/students
  239. 239 ls -l /data/students/
  240. 240 getfacl students/
  241. 241 getfacl students/lisa1
  242. 242 man setfacl
  243. 243 setfacl -R -x g:profs students/
  244. 244 ls -l /data/students/
  245. 245 getfacl students/
  246. 246 setfacl -R -m g:profs:rX /data/students
  247. 247 getfacl students/
  248. 248 ls -l students/
  249. 249 su - linda
  250. 250 ls -l students/
  251. 251 getfacl students/lisa1
  252. 252 getfacl students/lindapaper
  253. 253 history
  254. 254 setfacl -m d:g:profs:rx /data/students
  255. 255 getfacl students/
  256. 256 su - linda
  257. 257 getfacl students/ldain2
  258. 258 history
  259. 259 getfacl students/
  260. 260 yum repolist
  261. 261 cd /etc/yum.repos.d/
  262. 262 ls
  263. 263 rm -f *
  264. 264 yum repolist
  265. 265 yum install nmap
  266. 266 cd
  267. 267 dd if=/dev/sr0 of=/centos8.iso bs=1M
  268. 268 cd /
  269. 269 ls -l
  270. 270 df -h
  271. 271 mkdir /repo
  272. 272 vim /etc/fstab
  273. 273 ls /repo
  274. 274 ls /repo/
  275. 275 mount -a
  276. 276 ls /repo/
  277. 277 yum repolist
  278. 278 cd repo
  279. 279 ls
  280. 280 cd BaseOS/
  281. 281 ls
  282. 282 ls Packages/
  283. 283 ls repodata/
  284. 284 cd ../AppStream/
  285. 285 ls
  286. 286 cd /etc/yum.repos.d/
  287. 287 vim base.repo
  288. 288 vim appstream.repo
  289. 289 yum repolist
  290. 290 yum search nmap
  291. 291 yum install nmap
  292. 292 vim appstream.repo
  293. 293 countdown 12
  294. 294 cd
  295. 295 yum search seinfo
  296. 296 yum provides */seinfo
  297. 297 yum install setools-console
  298. 298 ls -l $(which dnf)
  299. 299 ls -l $(which yum)
  300. 300 yum module list
  301. 301 yum module provides python
  302. 302 yum module provides python3
  303. 303 yum module provides httpd
  304. 304 yum module info httpd
  305. 305 yum module provides python36
  306. 306 yum module list
  307. 307 yum module list virt
  308. 308 yum module list php
  309. 309 yum module install php:7.3/minimal
  310. 310 lsblk
  311. 311 poweroff
  312. 312 lsblk
  313. 313 fdisk /dev/sda
  314. 314 lsblk
  315. 315 mkfs.xfs /dev/sda3
  316. 316 mkdir /files
  317. 317 vim /etc/fstab
  318. 318 mount -a
  319. 319 cd /
  320. 320 ls
  321. 321 ls -l
  322. 322 date
  323. 323 umount /files
  324. 324 vim /etc/fstab
  325. 325 ls
  326. 326 history | grep mkdir
  327. 327 mount -a
  328. 328 history
  329. 329 mount -a
  330. 330 mkdir /myfiles
  331. 331 mount -a
  332. 332 mount
  333. 333 countdown 12
  334. 334 fdisk /dev/sda
  335. 335 lsblk
  336. 336 cat /proc/partitions
  337. 337 reboot
  338. 338 lsblk
  339. 339 yum search btrfs
  340. 340 yum install epel-release
  341. 341 mkfs.xfs /dev/sda5
  342. 342 mkfs.ext4 /dev/sda6
  343. 343 mkdir /xfs /ext4
  344. 344 vim /etc/fstab
  345. 345 mount -a
  346. 346 umount /xfs
  347. 347 vi /etc/fstab
  348. 348 fdisk /dev/sda
  349. 349 reboot
  350. 350 lsblk
  351. 351 blkid
  352. 352 tune2fs --help
  353. 353 tune2fs -L goat /dev/sda5
  354. 354 vim /etc/fstab
  355. 355 xfs_admin --help
  356. 356 reboot
  357. 357 mount
  358. 358 mount | grep '^/'
  359. 359 blkid
  360. 360 lsblk
  361. 361 fdisk /dev/sda
  362. 362 mount /dev/sda6 /xfs
  363. 363 umount /xfs
  364. 364 xfs_admin -L cow /dev/sda6
  365. 365 vim /etc/fstab
  366. 366 fdisk /dev/sda
  367. 367 reboot
  368. 368 history
  369. 369 lsblk
  370. 370 blkid
  371. 371 cat /etc/fstab
  372. 372 xxd /dev/sda5 | less
  373. 373 xxd /dev/sda6 | less
  374. 374 history
  375.  
Add Comment
Please, Sign In to add comment