Skip to content

Commit

Permalink
added images
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulsoni43 committed Jun 15, 2020
1 parent ecadf83 commit 69f04c3
Show file tree
Hide file tree
Showing 12 changed files with 35 additions and 35 deletions.
10 changes: 5 additions & 5 deletions docs/06-Security-and-File-Permissions/02-Linux-Accounts.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
- In this section we will take a look at basic access control in Linux.
- We will also learn about about the file permissions. Lets Get Started!

![linux](../images/linux.PNG)
![linux](../../images/linux.PNG)


#### User Accounts
Expand All @@ -21,7 +21,7 @@
[~]$ cat /etc/group
```
![user](../images/user.PNG)
![user](../../images/user.PNG)
- Each user has a username and a unique ID assigned to them known as user ID or UID.
- The user also has a GID, the group id they are part of, **`id`** command can be use to check these details. for eg:
Expand All @@ -38,7 +38,7 @@
michael:x:1001:1001::/home/michael:/bin/sh
```
![group](../images/group.PNG)
![group](../../images/group.PNG)
- To see the list of users currently logged use **`who`** command.
Expand Down Expand Up @@ -82,14 +82,14 @@
[sudo] password for michael:
```
![who](../images/who.PNG)
![who](../../images/who.PNG)
- Users listed in /etc/sudoers file can make use of sudo command for privledge escalation.
```
[~]$ cat /etc/sudoers
```
![sudo](../images/sudo.PNG)
![sudo](../../images/sudo.PNG)
- To restrict anyone from directly login as root login, this can be done by setting **`nologin`** shell.
Expand Down
4 changes: 2 additions & 2 deletions docs/06-Security-and-File-Permissions/03-User-Management.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
bob:x:1002:1002::/home/bob:/bin/sh
```
![useradd](../images/useradd.PNG)
![useradd](../../images//useradd.PNG)
- To check the uid or username of the user logged in user **`whoami`** command.
Expand Down Expand Up @@ -53,7 +53,7 @@
[~]$ useradd -u 1009 -g 1009 -d /home/robert -s /bin/bash -c ”Mercury Project member" bob
```
![manage](../images/manage.PNG)
![manage](../../images//manage.PNG)
- To delete a user use **`userdel`** command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
USERNAME:PASSWORD:UID:GID:GECOS:HOMEDIR:SHELL
```
![passwd](../images/passwd.PNG)
![passwd](../../images//passwd.PNG)
- Password are stored under **`/etc/shadow`**
Expand All @@ -28,7 +28,7 @@
USERNAME:PASSWORD:LASTCHANGE:MINAGE:MAXAGE:WARN:INACTIVE:EXPDATE
```
![shadow](../images/shadow.PNG)
![shadow](../../images//shadow.PNG)
- Check the groups **`bob`** belongs too
Expand All @@ -37,7 +37,7 @@
NAME:PASSWORD:GID:MEMBERS
```
![egp](../images/egp.PNG)
![egp](../../images//egp.PNG)
# HANDS-ON LABS
Expand Down
6 changes: 3 additions & 3 deletions docs/06-Security-and-File-Permissions/05-File-Permissions.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
- In this lecture we will learn about various file type identifiers.
- We will also learn about various Linux file permissions that can be applied on the file or the directory.

![perm](../images/perm.PNG)
![perm](../../images//perm.PNG)


![type](../images/type.PNG)
![type](../../images//type.PNG)


#### Directory Permission
Expand All @@ -35,7 +35,7 @@
- Linux file permissions are defined as
![filep](../images/filep.PNG)
![filep](../../images//filep.PNG)
#### Modifying file permissions
Expand Down
10 changes: 5 additions & 5 deletions docs/06-Security-and-File-Permissions/06-SSH-and-SCP.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
bob@caleston-lp10 ~]$ ssh-keygen –t rsa
```
![key](../images/key.PNG)
![key](../../images//key.PNG)
- To copy the Public key from the client to the remote server
```
bob@caleston-lp10 ~]$ ssh-copy-id bob@devapp01
```
![copy](../images/copy.PNG)
![copy](../../images//copy.PNG)
- Now **`Bob`** can login to remote server without password
Expand All @@ -62,15 +62,15 @@
[bob@caleston-lp10 ~]$ ssh devapp01
```
![pless](../images/pless.PNG)
![pless](../../images//pless.PNG)
- Public Key is copied to the remote server at :
```
[bob@caleston-lp10 ~]$ cat /home/bob/.ssh/authorized_keys
```
![auth](../images/auth.PNG)
![auth](../../images//auth.PNG)
#### SCP
Expand All @@ -86,4 +86,4 @@
[bob@caleston-lp10 ~]$ scp –pr /home/bob/media/ devapp01:/home/bob
```
![scp](../images/scp.PNG)
![scp](../../images//scp.PNG)
6 changes: 3 additions & 3 deletions docs/07-Networking/02-DNS.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@
# DOMAIN NAMES
![DNS](../images/dns.PNG)
![DNS](../../images//dns.PNG)
- .com - Commerical or General Purpose.
- .net - Network or General Purpose.
- .edu - Education Purpose
- .org - Organizations for non profit organizations etc.
![Root](../images/root.PNG)
![Root](../../images//root.PNG)
# RECORD TYPES
![Record](../images/record.PNG)
![Record](../../images//record.PNG)
- A - IP to host names.
- AAAA - Storing ipv6 to hostnames.
Expand Down
4 changes: 2 additions & 2 deletions docs/07-Networking/03-Networking-Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- Switching helps to connect the interface within same network.

![switch](../images/switch.PNG)
![switch](../../images//switch.PNG)

- To see the interfaces on the hosts use **`ip link`** command

Expand All @@ -26,7 +26,7 @@

- Router helps to connect to two seprate networks together.

![route](../images/routing.PNG)
![route](../../images//routing.PNG)

- To see the existing routing table configuration run the **`route`** command.

Expand Down
6 changes: 3 additions & 3 deletions docs/07-Networking/04-Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- In this lecture we will be going to troubleshooting the issue that **`Bob`** is facing.
- Bob is not able to reach to the repository server and he get the error as show below.

![site](../images/site.PNG)
![site](../../images/site.PNG)

#### Check Interfaces

Expand Down Expand Up @@ -62,12 +62,12 @@
[caleston-repo-01: ~]$ netstat -an | grep 80 | grep -i LISTEN
```
![net](../images/net.PNG)
![net](../../images/net.PNG)
- To bring up the interface up use below command.
```
[caleston-repo-01: ~]$ ip link set dev enp1s0f1 up
```
![iplink](../images/iplink.PNG)
![iplink](../../images/iplink.PNG)
4 changes: 2 additions & 2 deletions docs/08-Storage-in-Linux/02-Storage-Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
- External Storage Devices such as DAS,NAS, and SAN.
- LVM in Action.

![Disk](../images/disk.PNG)
![Disk](../../images//disk.PNG)

#### List all Block devices

Expand All @@ -31,7 +31,7 @@
#### Partition Types -
![Part](../images/partition.PNG)
![Part](../../images//partition.PNG)
- PRIMARY - Use to Boot an Operating System.
- EXTENDED - Can host logical partitions but cannot be used on its own.
Expand Down
4 changes: 2 additions & 2 deletions docs/08-Storage-in-Linux/03-File-System-in-Linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

- In this lecture we will cover the most commonly used file systems from EXT2 to EXT4.

![fs](../images/fs.PNG)
![fs](../../images/fs.PNG)

#### Working with Ext4

Expand Down Expand Up @@ -46,7 +46,7 @@
```
- **`fstab`** file attributes
![fstab](../images/fstab.PNG)
![fstab](../../images/fstab.PNG)
# HANDS-ON LABS
Expand Down
4 changes: 2 additions & 2 deletions docs/08-Storage-in-Linux/05-LVM.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- LVM allows grouping of multiple physical volumes, which are hard disks or partitions into a volume group.
- Volumegroups can be carve out logical volumes.

![LVM](../images/lvm.PNG)
![LVM](../../images/lvm.PNG)

#### Working with LVM

Expand Down Expand Up @@ -159,7 +159,7 @@
/dev/mapper/caleston_vg-vol1 2.0G 1.6M 1.9G 1% /mnt/vol1
```
![LVM2](../images/lvm2.PNG)
![LVM2](../../images/lvm2.PNG)
# HANDS-ON LABS
Expand Down
6 changes: 3 additions & 3 deletions docs/09-Service-management-with-SYSTEMD/03-SYSTEMD-Tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
during the system boot.
- It is also used to **`LIST AND MANAGE UNITS`** and **`LIST AND UPDATE TARGETS`**

![Systemctl](../images/systemctl.png)
![Systemctl](../../images/systemctl.png)

### Systemctl Commands

Expand Down Expand Up @@ -58,7 +58,7 @@
- Besides **`active (running)`** state there are few other state that you should be aware off.
![Other](../images/otherstate.PNG)
![Other](../../images/otherstate.PNG)
- Running **`systemctl daemon reload`** command after making changes to service unit file reloads the system manager configuration and makes the systemd aware of the changes.
Expand Down Expand Up @@ -101,7 +101,7 @@
- The systemd-journald service is responsible for systemd’s log collection, and it retrieves messages from the kernel systemd services, and other sources.
- Very useful when you are troubleshooting issues with systemd services.
![Journalctl](../images/journalctl.png)
![Journalctl](../../images/journalctl.png)
- Using **`journalctl`** commands print all the log entries from oldest to the newest.
- Using **`journalctl -b`** command print all the logs from the current boot.
Expand Down

0 comments on commit 69f04c3

Please sign in to comment.