Changes between Version 4 and Version 5 of Csle2022/Agenda/linuxhandson


Ignore:
Timestamp:
Nov 27, 2022, 8:32:47 AM (2 years ago)
Author:
tuwan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/linuxhandson

    v4 v5  
    406406Permissions have values like this:
    407407
    408  
     408[[Image(reference.png, 300px, nolink))]]
    409409
    410410
    411411Thus 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:
    412412
    413 
     413[[Image(letterpermission.png, 400px, nolink))]]
    414414 
    415415
     
    418418
    419419
    420  
     420[[Image(permission_dis.png, 600px, nolink))]]
    421421
    422422
     
    456456$ sudo su
    457457
    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.txt
     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.txt
    461461}}}
    462462 
     463[[Image(sudosu.png, 400px, nolink))]]
    463464
    464465=== More Linux Commands ===
    465466
    466 {{{
     467
    467468who: who command will give you information about who is logged on the system.
    468 
     469{{{
    469470$ who
     471}}}
    470472
    471473whoami command tells you your username
    472 
     474{{{
    473475$ whoami
    474 
    475 df -dh: report file system disk space usage
     476}}}
     477
     478df -h: report file system disk space usage
     479{{{
     480df -h
     481}}}
     482
     483[[Image(whoami.png, 400px, nolink))]]
    476484
    477485man: Will give you man pages (also called manual pages) on your Unix or Linux computer