Final Project
Final Project
International School
FINAL REPORT
OPERATING SYSTEM
Install Ubuntu Server and study on file access permision
Class: AIT2022
Group: 4
Project Requirements:
- Install Ubuntu Server operating system on a virtual machine
- Demo on file access permission control on Ubuntu Server
2. History of Ubuntu
The history of Ubuntu begins in 2004 when South African entrepreneur Mark
Shuttleworth founded Canonical Ltd., a company dedicated to developing and promoting
open-source software. Inspired by the philosophy of Ubuntu, which emphasizes
interconnectedness and sharing, Shuttleworth aimed to create a Linux-based operating
system that would be freely available to everyone.
On October 20, 2004, the first version of Ubuntu, known as Ubuntu 4.10, was released. It
was based on the Debian distribution of Linux and featured the GNOME desktop
environment. The initial release focused on delivering a user-friendly and intuitive
computing experience, making Linux more accessible to a wider audience.
Ubuntu quickly gained attention for its simplicity, stability, and strong community
support. The project's commitment to providing regular updates and security patches,
along with its emphasis on usability, attracted a growing number of users and
contributors. The Ubuntu community played a crucial role in shaping the development of
the operating system, contributing to its growth and success.
In 2006, Ubuntu introduced its Long-Term Support (LTS) releases, which are designed to
provide an extended support period for stability-focused environments such as servers
and enterprise deployments. LTS releases occur every two years and receive five years of
security updates and maintenance, providing users with a reliable and predictable
platform.
Over the years, Ubuntu expanded its offerings to include different flavors tailored to
specific desktop environments. For example, Kubuntu uses the KDE Plasma desktop,
Xubuntu utilizes the Xfce desktop, and Lubuntu is designed for low-specification
hardware using the LXQt desktop. These flavors allow users to choose the desktop
environment that best suits their preferences and hardware requirements while still
benefiting from the underlying Ubuntu infrastructure.
In 2011, Ubuntu made a significant change to its user interface with the introduction of
Unity, a shell for the GNOME desktop environment. Unity aimed to provide a more
streamlined and touch-friendly interface, aligning with emerging trends in mobile and
tablet computing. While Unity received mixed reactions from the community, it
showcased Ubuntu's commitment to innovation and adaptation.
In 2017, Ubuntu announced that it would be transitioning from Unity back to the
GNOME desktop environment, starting with Ubuntu 17.10. This decision was made to
consolidate efforts and leverage the broader GNOME community's expertise. Returning
to GNOME allowed Ubuntu to focus on delivering a more polished and cohesive user
experience while benefiting from upstream GNOME development.
Since its inception, Ubuntu has become one of the most popular Linux distributions
worldwide. It has gained recognition and adoption in various domains, from personal
computers and servers to cloud infrastructure and Internet of Things (IoT) devices.
Ubuntu's influence extends beyond its own ecosystem, as it serves as the foundation for
other popular distributions such as Linux Mint and elementary OS.
In addition to the desktop and server editions, Canonical has also introduced Ubuntu
Core, a version of Ubuntu designed specifically for IoT devices, and Ubuntu Touch, a
mobile operating system for smartphones and tablets. These initiatives further reflect
Ubuntu's commitment to expanding its reach and embracing new technologies.
Throughout its history, Ubuntu has remained true to its core principles of openness,
accessibility, and collaboration. The Ubuntu community continues to play a vital role in shaping
the operating system's development, ensuring that it remains a reliable, user-friendly, and free
platform for individuals, organizations, and communities around the world.
II. Project
1. Install Ubuntu server operating system on a virtual machine:
Step 1: Access Download Ubuntu Desktop | Ubuntu to download Ubuntu iso file
-rwxr-
xr--
In which:
First character: Interface for the object type (file, folder, or link symbol). It may be:
- '-' : The object is a file.
- 'd': Object is a directory.
- 'l': Object is a link symbol.
To set access permissions for the owner, group, and everyone else on Ubuntu, you can
use the chmod command. Here is the basic syntax of the chmod command:
chmod [permissions] [file/folder path]
In there:
- [permissions] represents the permissions you want to set for the file or folder. This
permission can be represented using symbols such as u (owner), g (group), o (everyone
else) combined with + (add permission), - (remove permission) and = ( replace
permission). Permissions can be r (read), w (write), x (execute), or numeric symbols
(permission digitization).
- [file/folder path] is the path to the file or folder for which you want to change
permissions.
- For example, to set read and write permissions for the owner, read permissions for the
group, and no access permissions for everyone else on a specific file, you can use the
following command:
chmod u=rw,g=r,o= my_file.txt
In this example:
- u=rw sets read and write permissions (‘rw’) to the owner (‘u’).
- g=r sets read permission (‘r’) for group (‘g’).
- o= does not give everyone else (‘o’) any rights (‘=’).
- Note that you need administrator rights or ownership of files/folders to be able to change
their access permissions.
You can change file permissions at runtime using ‘chmod’ and ‘sudo’ commands. The
‘sudo’ command is used to execute a command as root (administrator), allowing you to
make changes to the system that require special permissions.
In there:
- ‘sudo’: allows you to run commands as root.
- ‘chmod’: is the command to change file permissions.
- ‘u+rwx’: sets read, write, and execute permissions to the owner of the file.
- ‘my_file.txt’: is the name of the file for which you want to change permissions.
After entering the above command, the terminal will ask you to enter the owner's password or
administrator password (depending on the system's configuration). Please enter the
corresponding password and press Enter.
When you enter the password and press Enter, the system will execute the chmod command as
root and change the file's permissions according to your requirements. Note that you need
administrator rights to use the sudo command and change file permissions.
Change the owner and owner group of the file: To change the ownership of a file in
Ubuntu, you can use the ‘chown’ command. Here is the syntax of the command:
chown [username/username:groupcode] [file/folder path]
In there:
- [username]: is the new username you want to make the owner of the file or folder.
- [groupcode]: is the new group number (optional) that you want to set for the file or
folder. If you don't specify a group code, the user is added to their default group.
- [file/folder path]: is the path to the file or folder for which you want to change
ownership.
- For example, to change the owner of file "example.txt" to user "user1" and group
"group1", you can use the following command:
sudo chown user1:group1 example.txt