Docsity

System review lesson, Exams of Network and System Administration

Toggle sidebar
bg1
Lesson Review
Saturday, January 30, 2021
10:55 PM
1. AD DS (Active Directory Domain Service)
1. Step installation
โ–ช Add roles Active Directory Services role
โ–ช Promote DC
โ–ช Configure DNS
โ–ช Let client join domain
2. OU management
โฎš OU stands for Organization unit is a container or folder that is
made within AD which you can place user, group, computer
account and other ou.
โฎš Why create OU?
o Useful group policy setting
o Allow you to delegate
o Save time for admin
Note: all objects in OU have default permission.
3. Manage user and group account
โ— Create
โ— Delete
โ— Modify
โ— Add to group
โ— Logon hour
โ— โ€ฆ
โ— Password option
โ— Password never expires
โ— Cannot change password
โ— User must change password at next logon
โ— User disables
2. GPO (Group Policy Object)
1. Deploy application
โ— Go to GPO
- create GPO name => edit
โ— Browse the software
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download System review lesson and more Exams Network and System Administration in PDF only on Docsity!

Lesson Review

Saturday, January 30, 2021 10:55 PM

1. AD DS (Active Directory Domain Service) 1. Step installation โ–ช Add roles Active Directory Services role โ–ช Promote DC โ–ช Configure DNS โ–ช Let client join domain 2. OU management โฎš OU stands for Organization unit is a container or folder that is made within AD which you can place user, group, computer account and other ou. โฎš Why create OU? o Useful group policy setting o Allow you to delegate o Save time for admin Note: all objects in OU have default permission. 3. Manage user and group account โ— Create โ— Delete โ— Modify โ— Add to group โ— Logon hour โ— โ€ฆ โ— Password option โ— Password never expires โ— Cannot change password โ— User must change password at next logon โ— User disables 2. GPO (Group Policy Object) 1. Deploy application โ— Go to GPO - create GPO name => edit โ— Browse the software

  • Click on (Computer configuration => Policies => Software setting => software installation => New => Package)
  • Choose Assigned option click Ok โ— Go to restart on client
  1. Configure disk quotas โ— Before we set disk quotas for user ensure that we install FSRM
  • Go to FSRM => create quota
  • Set the space for user click ok
  1. Map network drive โ— Go to GPO
  • Create GPO => edit
  • click on (user configuration => Preferences => windows settings => Drive maps => New => Mapped Drive)
  • choose option required in Tap General and Common (Action, Location,) click Ok
  • Test on client
  1. Password policy
  • Enforce password history

- Max password age (แž…แŸ’แžšแžพแž“ )

  • Min Password age
  • Min Password length
  • Password must complexity
  • Store password using reversible encryption
  1. โ€ฆ 3. DNS (Domain name system)
  2. Step configuration (Windows)
  3. Open the server manager console and launch the add roles and features wizard
  4. Launch DNS manager wizard
  5. Create forward lookup zone
  • launch DNS server console (Tools - > DNS)
  • Click on Forward lookup zone => New zone => next
  1. DNS Root hint: are DNS resource records stored on a DNS server that list the IP address for the DNS root servers. There are 13 IP addresses of root hints. Use root hint when DNS server not configure forwarder resolver. (Root servers store all IP address top level domain)
  2. Hosts File: is used to map domain names to IP addresses, and can be used as an alternative to DNS
  3. DNS client configuration (Linux)
    • edit /etc/resolv.conf
    • add your ISP nameserver or your DNS server
    • Test with nslookup command to ensure it is working
  4. DNS query process Query: is a request for name resolution to a DNS server. There are two types of queries: recursive and iterative. Recursive query is a query made to a DNS server, in which the DNS client asks the DNS server to provide a complete answer to the query. Iterative Query is a query made to a DNS server in which the DNS client requests the best answer that the DNS server can provide without seeking further help from other DNS servers. The result of an iterative query is often a referral to another DNS server lower in the DNS trees
  1. DNS cache: is the process of temporarily storing recently accessed information in a special memory subsystem for quicker access. To clear DNS cache on client by command: ipconfig /flushdns 4. DHCP (Dynamic Host Configuration Protocol)
  2. Step configuration (Windows)
  3. Click add role and feature
  • select server role => add features (DHCP server)
  • Configuration => click install
  1. Configure DHCP
  • click on yellow notification => complete DHCP configuration
  • keep default or choose โ€œSkip AD authorizationโ€ (if server not join domain) => commit
  1. Lunch DHCP
  • click on Tool => DHCP
  1. Create new scope โ— click on IPv4 => New scope
  • put the name of scope
  • put range of IP Address
  • lease duration
  • Default gateway
  • Domain name
  • DNS server
  1. Click finish configuration

โ— NTFS permission (File and Folder permission) *** โ— Standard permission โ— Special permission

  1. Different between Share and NTFS permission โ— NTFS Permission - Full control
  • Modify
  • Read & Execute 363 - read
  • write NTFS (New Technology File System) is the standard file system for Microsoft Windows NT and later operating systems; NTFS permissions are used to manage access to data stored in NTFS file systems. The main advantages of NTFS share permissions are that they affect both local users and network users and that they are based on the permissions granted to an individual user at the Windows logon, regardless of where the user is connecting from. โž” NTFS is a file systems that provides
  • Reliability
  • Security of the files level and folder level
  • Improved management storage growths
  • Multi user permission โ— Share Permission
  • read
  • change
  • Full control Share permissions manage access to folders shared over a network; they donโ€™t apply to users who log on locally. Share permissions apply to all files and folders in the share; you cannot granularly control access to subfolders or objects on a share. You can specify the number of users who are allowed to access the shared folder.
  • share over network
  • Set permission to folders or files for user No
  • Don't apply for user who log-on computer
  • By default add everyone and permission read
  1. How this two permission works together: the permission that was apply will follow the small permission **7. File Server Resource Manager (FSRM) ****
  2. Quota Quotas: is the feature that enable user restrict the storage capacity of shared resources

โ— MTA: Mail Transfer Agent โ— MDA: Mail Delivery Agent

  1. Mail protocol / port
    • POP3 port 110: Receiving email from users and Download mail into local computer and keep in mailbox
    • IMAP port 143: Receiving email from users and View mail from mailbox server
    • SMTP (Simple Mail Transfer Protocol) port 25, 465, 587: use to send mail
  2. Exchange connector โ— Send connector: for outbound SMTP connections from source Exchange servers to destination email servers.
  • By default, no Send connectors exist for external mail flow when you install Exchange. To enable outbound internet mail flow, you need to create a Send connector, or subscribe an Edge Transport server to your Exchange organization. โ— Receive connector: determines how that specific server listens for SMTP connections. created automatically when you install an Exchange Mailbox server 9. Backup Server
  1. Backup method *** โ— Full
  • Backup all and store into media
  • Backups should be done when the system is not being used to avoid data changes during the backup, so usually at night
  • Disadvantage: the time to backup grows every day and may exceed the backup window by the end of the week
  1. Backup policy
  2. Restore process โ˜… Backup Ex: On 25th May, user A reported that he lost his important file. What will you do to restore backup? โž” Full backup: 1st of the month โž” Differential backup: Sunday of the week โž” Incremental backup: Daily at 1:00AM โžข Restore process
  3. Restore full backup file 1st May
  4. 3rd week of the Differential backup
  5. Incremental 24th 10.Print server
  6. Network printer: is a printer that is accessible by network conncetion, to usable clients just have the communication with the printer server.
  7. Local printer: A local printer is one which is directly connected to a specific computer via USB cable 11.Firewall โ–  FirewallD โ–  Allow/deny rules *** โ— allow
  • firewall-cmd --zone=public --permanent --add- service=servicename
  • firewall-cmd --zone=public --add-port=portservice/tcp -- permanent

โ— Deny

  • firewall-cmd --zone=public --remove-service=servicename -- permanent Example: โ— allow
  • firewall-cmd --zone=public --permanent --add-service=http
  • firewall-cmd --zone=public --add-port=5000/tcp -- permanent โ— Deny
  • firewall-cmd --zone=public --remove-service=https -- permanent โ–  Protocol / port on any services Services Protocol & Ports FTP TCP 20, 21 SSH TCP 22 SMTP TCP 25 POP3 TCP 110 HTTP TCP 80 LDAP TCP 389 IMAP TCP 143 DNS TCP, UDP 53 DHCP UDP 67, 68 Telnet TCP 23 NTP UDP 123 12.Linux user and group management
  1. useradd : used to create a normal user in linux, only root can do it

  1. chown

    โ— User owner โ— Group owner โ— Other Chown: used to change the files ownership. Every file on the system belongs to a group of users and an owner. # chown root:root Desktop/ # chown root:apache /etc/httpd/http.conf 14.Linux Basic Command lines
  2. Create/edit files โ— # touch: create an empty file $ touch file_name {..} example $ touch file{A..Z}(it will create files from fileAto fileZin order) {,} example $ touch file{1,9}(it will create only file1and file9) โ— # vim $ vim file_name (edit file) Press "i" : insert text/modify/delete text Press "Esc" > Press :wq!Or :x!(enter) =>save and exit Press "Esc" > Press ZZ => save and exit Press "Esc" > Press :q!(enter) => exit without saving โ— # less: allows quickly view files. You can page up and down. Press โ€œ q โ€ to quit from less windows.

less install.log

less - N /etc/passwd

โ— # cat $ cat file_name (does not view contents on a full screen mode) โ— # tail $ tail file_name(display only last 10 line) $ tail - n [number] file_name : $ tail - n 20 text.txt $ tail - [number] file_name : $ tail - 20 text.txt โ— # head $ head file_name(display only first 10 lines)

$ head - n [number] file_name : $ head - n 5 /etc/passwd $ head - [number] file_name : $ head - 5 /etc/passwd โ— โ€ฆ

  1. Copy files and folders (local copy and remote copy)
    1. cp : This command is used to copy files or group of files or

      directory

      cp [option] [source] [destination]

      cp file1.txt /mnt/data (copy a file)

      cp file1.txt file2.txt file3.txt /mnt/data (copy group of files)

      cp โ€“ r /data /opt/backup (copy directory)

    2. scp: is used to copy file(s) between servers in a secure way.

      Scp [src_file_name] [username@des_host:des_folder]

      scp โ€“ pv lab.pdf [email protected]:/home/geeko (copy a file

      to remote host) # scp โ€“ r /mnt/data [email protected]:/opt/backup (copy all files within /mnt/data folder to remote host) Find files: used to search and locate the list of files and directories based on conditions you specify for files that match the arguments. โ— # find. - name file1.txt: search file1.txt in current directory โ— # find /home - iname http.conf
    • iname โ€“ Search while ignoring the text case.
  1. yum remove [packages]

    • $ yum remove firefox - y
  2. yum search [packages]

    • $ yum search firefox
  3. yum list available (list all packages that are available to install

    on repository) - $ yum list available firefox (check only package "firefox" if it available on repository)
  4. yum list installed (list all packages that already installed in the

    system) - $ yum list installed firefox (list only firefox if is already installed) Linux standard I/O (redirect)
  5. echo

$ echo "type what you want" >>file_name (add texts into file)

  1. > : overwrite on old contents
  2. < : operator to redirect the input for a command
  • it means that count all lines that input from file testing
  1. >> : add more contents **15. WEB Server (Apache) *******
  2. Step configuration โ— Install apache
  • yum - y install httpd
  • systemctl enable httpd
  • systemctl start httpd โ— File configuration
  • /etc/httpd/conf/h
  • ttpd.conf
  1. Apache feature
  • Can hosting multiple websites with virtual hosting
  • FTP support
  • Name-based and IP address-based virtual servers
  • Highly scalable (access more than 10,000 connections)
  • HTTP/2 support
  • real-time status views
  • Request processing rate limiting
  1. Virtual hosting โ— Name based *: use the same ip address but different domain name โ— IP based: use more ip addresses
  2. Protocol/port: tcp port 80 and 443
  3. TLS/SSL
  • TLS (Transport Layer Security) is just and updated, more secure