1 Linux Server Fundamentals And Administration

Network and System Administration · Unit 1

Linux Server Fundamentals and Administration

Exam-focused notes for Linux Server Fundamentals and Administration (Network and System Administration, BIT451): what the TU syllabus asks and how it has actually been tested, with 2 solved past questions from this unit.

Linux Server Fundamentals and Administration in short

A Linux server is a computer that runs the Linux operating system to offer services such as web, mail and file sharing. A system administrator must know how to install it, keep it updated and control who can use it.

Linux Server Fundamentals and Administration: notes

Linux server features and characteristics

Linux is a free and open source operating system based on the Unix design. It is widely used on servers because it is stable and cheap to run.

  • Open source: The source code is free to read, change and share.
  • Multiuser: Many users can log in and work at the same time.
  • Multitasking: Many programs run together without disturbing each other.
  • Stable and reliable: A server can run for months without a reboot.
  • Secure: File permissions, user separation and firewalls protect the system.
  • Portable: It runs on many kinds of hardware.
  • Command line control: Most tasks can be done by commands and scripts, also over SSH from far away.
  • Low cost: There is no licence fee, and the hardware needs are modest.

Linux server installation process

Installation puts the operating system on the disk and sets its first configuration. The usual flow is as follows.

  • Download the ISO image of the distribution, such as Ubuntu Server or Rocky Linux.
  • Write it to a USB drive or DVD, or attach it to a virtual machine.
  • Boot from it and choose the language, keyboard and network settings.
  • Partition the disk. A common layout has /boot, / (root), swap and /home.
  • Choose the packages or server role to install.
  • Set the hostname, create the root or admin user, and set a strong password.
  • Install the boot loader (GRUB) and reboot into the new system.
  • After the first login, update the packages and enable only the services you need.

Separate partitions help because a full /home or /var does not stop the whole system.

What this unit covers

  • Linux server features and characteristics
  • Linux server installation process
  • Online server upgrade procedures
  • User and group management
  • Privilege management and permissions
  • Linux administration commands

Linux server features and characteristics

2082 · 10 marks

What are the salient features of Linux server? Explain the process of online server upgrade.[10]

Show solved answer

Model Answer: Salient Features of Linux Server and Online Server Upgrade

Salient Features of Linux Server (5 marks)

1. Open Source

  • Source code is freely available for modification and distribution
  • Community-driven development ensures continuous improvement
  • No licensing costs

2. Portability

  • Runs on diverse hardware platforms (mainframes, servers, desktops, embedded systems)
  • Easy to migrate between different systems
  • Consistent behavior across platforms

3. Multi-user and Multitasking

  • Multiple users can work simultaneously on the same system
  • Multiple processes can run concurrently without interfering with each other
  • Efficient resource sharing and management

4. Security

  • User authentication and authorization mechanisms
  • File permission system (read, write, execute)
  • Firewall capabilities and encryption support
  • Regular security updates from community

5. Stability and Reliability

  • Can run for years without requiring restart
  • Robust error handling and recovery mechanisms
  • Minimal downtime and high availability

6. Scalability

  • Handles increasing workloads efficiently
  • Can manage large numbers of users and processes
  • Suitable for both small and enterprise-level deployments

Process of Online Server Upgrade (5 marks)

Definition

Online server upgrade refers to updating or patching a Linux server while it remains operational, without causing service interruption to users.

Step-by-Step Process:

Step 1: Planning and Preparation

  • Identify required updates (security patches, kernel updates, software upgrades)
  • Create backup of critical data and configurations
  • Schedule upgrade during low-traffic periods if possible
  • Notify users about potential performance impact

Step 2: Update Repository Information

sudo apt update          # For Debian/Ubuntu
# or
sudo yum update          # For RedHat/CentOS
  • Refreshes package lists from repositories
  • Identifies available updates

Step 3: Download Updates

  • Download new packages without installing immediately
  • Verify package integrity and dependencies
  • Ensure sufficient disk space available

Step 4: Install Updates

sudo apt upgrade         # Non-disruptive updates
# or
sudo apt dist-upgrade    # Major version upgrades
  • Install updates while system remains running
  • Most services continue operating

Step 5: Service Restart (if required)

  • Some updates require service restart
  • Restart individual services rather than entire system:
sudo systemctl restart service_name
  • Minimize downtime by restarting only affected services

Check

  • Verify all services are running correctly
  • Check system logs for errors
  • Test critical applications and functionality
  • Monitor system performance

Step 7: Rollback Plan

  • Keep previous version available if issues occur
  • Document changes made during upgrade
  • Have recovery procedure ready

Advantages of Online Upgrade:

  • Continuous service availability
  • No scheduled downtime
  • Improved user experience
  • Cost-effective for production environments

Note: The specific commands and procedures may vary depending on the Linux distribution (Ubuntu, CentOS, Fedora, etc.) and the type of upgrade being performed.

Open this answer on its own page →

User and group management

2082.1 · 10 marks

Explain user, group, and privilege management in Linux system administration using suitable commands.[10]

--- --- --- --- --- Task Command --------------- Create user useradd -m username Create group groupadd groupname Add user to group usermod -aG group user Change permissions chmod 755 file Change owner chown user:group file Grant sudo usermod -aG sudo user View permissions ls -l file This hierarch...

Open this answer on its own page →