Changes between Version 4 and Version 5 of Csle2022/Agenda/linuxhandson
- Timestamp:
- Nov 27, 2022, 8:32:47 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/linuxhandson
v4 v5 406 406 Permissions have values like this: 407 407 408 408 [[Image(reference.png, 300px, nolink))]] 409 409 410 410 411 411 Thus you can give permissions to a file using the sum of the values for each permission you wish to give for each column. Here is an example: 412 412 413 413 [[Image(letterpermission.png, 400px, nolink))]] 414 414 415 415 … … 418 418 419 419 420 420 [[Image(permission_dis.png, 600px, nolink))]] 421 421 422 422 … … 456 456 $ sudo su 457 457 458 •Change the ownership and group of the numbers2.txt to root and make it read only for all the other users.459 •Change the ownership and group of the numbers3.txt to root and remove all the privileges from all the other users.460 •Switch back to your user and try to view numbers3.txt and try to edit numbers2.txt458 * Change the ownership and group of the numbers2.txt to root and make it read only for all the other users. 459 * Change the ownership and group of the numbers3.txt to root and remove all the privileges from all the other users. 460 * Switch back to your user and try to view numbers3.txt and try to edit numbers2.txt 461 461 }}} 462 462 463 [[Image(sudosu.png, 400px, nolink))]] 463 464 464 465 === More Linux Commands === 465 466 466 {{{ 467 467 468 who: who command will give you information about who is logged on the system. 468 469 {{{ 469 470 $ who 471 }}} 470 472 471 473 whoami command tells you your username 472 474 {{{ 473 475 $ whoami 474 475 df -dh: report file system disk space usage 476 }}} 477 478 df -h: report file system disk space usage 479 {{{ 480 df -h 481 }}} 482 483 [[Image(whoami.png, 400px, nolink))]] 476 484 477 485 man: Will give you man pages (also called manual pages) on your Unix or Linux computer