Ubuntu Linux Administration Basics | Mostafa Mahmoud | Skillshare

Playback Speed

  • 0.5x
  • 1x (Normal)
  • 1.25x
  • 1.5x
  • 2x

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Watch this class and thousands more

Get unlimited access to every class
Taught by industry leaders & working professionals
Topics include illustration, design, photography, and more

Lessons in This Class

11 Lessons (21m)
    • 1. 00 Ubuntu Linux Administration Class Overview

    • 2. 01 Creating a User

    • 3. 02 Deleting and disabling account

    • 4. 03 Adding and Removing users from the usergroups

    • 5. 04 File Security

    • 6. 05 Ownership in Ubuntu files

    • 7. 06 Permissions

    • 8. 07 chmod Command

    • 9. 08 Absolute(Numeric) Mode

    • 10. 09 Symbolic Mode

    • 11. 10 Changing Ownership and Group

  • --
  • Beginner level
  • Intermediate level
  • Advanced level
  • All levels

Community Generated

The level is determined by a majority opinion of students who have reviewed this class. The teacher's recommendation is shown until at least 5 student responses are collected.





About This Class

Ubuntu Linux Administration Basics

Hi, I'm Mustafa Mahmoud. A Senior Linux Administrator and Online Instructor. I have been working as Linux System Administrator for more than ten years, currently devoted to teaching. I like to share my knowledge with others and help them advance in their careers.

In this class, you will learn:

  • Creating a User.

  • Deleting and Disabling an Account.

  • Adding and Removing Users from the Usergroups.

  • The “finger” command.

  • File Security.

  • Ownership in Ubuntu files.    

  • Permissions.

  • The “chmod” command.

  • Absolute and Symbolic modes.

  • Changing Ownership and Group.

Meet Your Teacher

Teacher Profile Image

Mostafa Mahmoud

Data Scientist/ML Engineer/Linux Expert


Hello, I'm Mostafa. A data scientist, ml engineer, and Linux expert. I worked for ten years as a Linux systems administrator at Express, then I had the opportunity to turn to data science. Because of my passion for this field and my keen attention to detail, I got my Udacity certifications to work as a data scientist and machine learning engineer. The most recent projects I worked on were Finding Donors for CharityML, a full exploratory and explanatory analytics work project for Ford Go Bike company trips data, and creating a logistic regression to predict absenteeism. I'm working on improving my skills and looking for job opportunities that will help me in this direction.

Skills: Python, SQL, Linux
Applications: Jupyter Notebook, Google Colab, Weka, P... See full profile

Class Ratings

Expectations Met?
  • 0%
  • Yes
  • 0%
  • Somewhat
  • 0%
  • Not really
  • 0%
Reviews Archive

In October 2018, we updated our review system to improve the way we collect feedback. Below are the reviews written before that update.

Why Join Skillshare?

Take award-winning Skillshare Original Classes

Each class has short lessons, hands-on projects

Your membership supports Skillshare teachers

Learn From Anywhere

Take classes on the go with the Skillshare app. Stream or download to watch on the plane, the subway, or wherever you learn best.


1. 00 Ubuntu Linux Administration Class Overview: I want to administration. In this class, you learn some important visit. Drops off Bantu system administrator. How to create a user, how to do it and able and account, adding and removing users from the user Groups file security ownership in open toe files, but emissions the chairman Calmund, using absolute and symbolic moods, changing ownership and group, finding out file properties and the changing file permissions for security. 2. 01 Creating a User: creating a user in Lenox, every user is assigned an individual account, which contains all the files, information and better off the user. You can create multiple users in a clinics operating system. First, using terminal, we will use the comment to do end user, for example, Su do End user. Just now, the new account test is created second, creating a user using graphical user interface. Go to the system sittings. Look for an icon which say's user accounts, click on the outlook icon and enter the best word when prompted. Then click the blast sign. A new window would pop up, asking you for adding information to the new user account. The account type offers two choices. Standard and Administration. If you want the new user toe, have administrative access to the computer. Select Administrator Account type administrators can do things like Ed and delete users. Install software and drivers and change the date and time. Otherwise, choose the standard filling the full name user name and click on create. Then you account true but would be disabled by default. To activate it, click the best word option and add a new bus word click change to enable the account. I hope this has been informative for you, and I'd like to thank you for viewing 3. 02 Deleting and disabling account: the leading and it's Ebeling account first using terminal for disabling and account using terminal. Remove the best words it on the account. So do best WD this l user name and to delete an account, use the comment. So do user. They'll this are user name second, deleting and disabling account using graphical user interface. Highlight the user account and they take the minus sign to delete and you would get this Promet. I hope this has being informative for you, and I like to thank you for viewing. 4. 03 Adding and Removing users from the usergroups: adding users to the user groups. You can view the existing groups in your Lennox operating system by entering this comment Group Mood and Bristol Key Twice Now to add a user to a group, use this scientifics. So do user mood This e this hour kiss g group name, user name We used this uppercase G option to add a supplementary group and we used the dish option toe ed the user to the supplementary groups. Use only with the dish uppercase G option. For example. So do user mood this e this uppercase g This Judy we're test is the group name, and Judy is the user name. You can check whether the user is in a group by this comment, kid slash it is he slash group Removing a user from user group for removing a user used this Centex Sukru They'll user user group name, for example. So do tell user Judy this where Judy is the user name and test is the group name. I hope this has been informative for you and I'd like to thank you for viewing 5. 04 File Security: file security on a UNIX system. Every file is owned by a user and a group user. There is also 1/3 category, if users those that are not the user owner and don't belong to the group owning the fight for each category off users read, write and execute permissions can be granted or denying. We really used the wrong option to list files using the L S L Common, though for other reasons. This common also displaced file permissions for these three user categories. They are indicated by the nine characters that follow the first character, which is the file type indicator at the beginning. Off the fiber liberties line. As we see the 1st 3 characters in this series off nine display access rights for the actual user that owns the fire, the next three or four. The group owner off the file, the last three. For other users, the permissions are always in the same order, read, write exe cute for the user, the group and the others. For effective security, Lennix divides authorization into two levels. The first level is ownership and the second level is permission. The concept off permissions and ownership is crucial in Lenox. I hope this has been informative for you, and I like to thank you for viewing 6. 05 Ownership in Ubuntu files: ownership in open two fires. Every file and directory in your Lennox system is assigned three types off Owner, user group and other first the user. A user is the owner of the fire. By default, the person who created a file becomes its owner. Hence, a user is also sometimes called an owner. The Group User Group can contain multiple users. All users belonging to a group will have the same access permissions to the fight. Suppose you have a project where a number of people require access to a fight. We stayed off manually, assigning permissions toe each user. You could add all users to a group and assigned group permission to fight such that. Only this group members and no one else can read or modify this files other. Any other user who has access to a file. This person has neither created the file, nor he belongs to a user group who could own the file. Practical E. It means everybody else. Hence, when you see it the permission for others, it is also referred as set permissions for orally. Now the big question arises. How does Lennox distinguish between these three user types so that a user A cannot affect a file which contains some other user bees, vital information or data. It is like you don't want your colleague who works on your Lennox computer to view your personal images. This is where permissions sit and they define user behavior. I hope this has bean informative for you, and I like to thank you for viewing. 7. 06 Permissions: permissions. Every file and directory in your Lennox system has the following three permissions defined for all the three owners discussed before who eat right and execute the Rebid mission. Give you the authority to open and read a file. Read permission on a directory gives you the ability to less this its content the right permission. The writer mission gives you the authority to modify the contents off a file. The red permission on a directory gives you the authority toe ed. Remove and rename files stored in the directory. Consider a scenario where you have write permission on the file, but don't have write permission on the directory where the file is a store. You will be able to modify the file contents, but you will not be able to rename, move or remove the file from the directory. The execute permission In Windows, an excusable program usually has an extension dot e x e and which you can is Laurent. But in Lennox, you can't run a program unless the execute permission is set. If they execute permission is not sit, you might still be able to see or modify. The program could provided that read and write permissions are set, but you can't actually run it until you have the execute permission. Let's see this in action. Ellis. This bill here, as we can see the highlighted permissions, tells us about the permissions given to the owner, user group and orderly here. The first hyphen or dish implies that we have selected a file. It's if it were a directory D would have bean trown. The characters are pretty easy to remember. Oh, for Reid Permission W for right Permission X, for execute permission and hyphen means no permission by design. Many Lennix distributions, like fedora centers open toe, will lead users to a group off the same group name as the user name. Thus, a user test is added to a group named Test. I hope this has Bean informative for you, and I like to thank you for viewing 8. 07 chmod Command: the CH Mood Command changing file or directory permissions is done using the CH Mood Command. Say you don't want your colleague to see your personal images. This can be achieved. Boy Changing file permissions using the CH Mood Command, which stands for change mood Using this comment, we can set permissions, read, write and execute a file or directory for the owner group and the orderly. The same text for this comment is see each month the emissions find name. There are two ways to use the comment absolutely wouldn't. And symbolic mood, which will be discussed in the next less one. I hope this has bean informative for you, and I like to thank you for viewing. 9. 08 Absolute(Numeric) Mode: absolute mood in this mood. File permissions are not represented as characters, but a three digit doctor number in this stable numbers used for all off permission types. Number zero means no permission. The simple is dish for read, write and execute. Number one means execute only. The symbol is this dish X number two means right. Only the symbol is this W dish number three means execute. Bless, right? The symbol is this W X number four means read only. The symbol is our dish dish. Number five means read plus execute. The simple is our dish X number six means read plus write. The simple is R W. Dish number seven means Read Plus right plus execute. The simple is our w X. Let's see the CH mood common in action. First, let's see permissions on fire noticed in this. This will this. Now let's change permissions on this file. C H would 764 just now to check a list. This will just now we have a change in the permissions on the file test. 2764 764 Absolute could say is the following Owner can read, write and execute user group can read and write. Worley can only read. This is shown is this r w X R W this our days This the first dish for the file type because it's fine. No directory. If it is directory, it would be the the next three letters for permissions for the user or the owner off the file and then three letters for permissions for the user group and the last three letters are for permissions for others or the early This is how you can change the permissions on a file by assigning an absolute number. I hope this has been informative for you, and I'd like to thank you for viewing. 10. 09 Symbolic Mode: symbolic mood in the absolute mood. You change permissions for all three owners, but you can also modify permissions off a specific owner. Using symbolic mood, it makes use off mathematical symbols to modify the file permissions. The blessed operator. It's a permission toe, a file or directory. The minus operator removes the permission. Equal operator sits the permission and overwrites. The permissions said earlier. The various owners are represented. Is you as user or owner? G as group? Who is other? And he has all. We will not be using permissions in numbers like 777 but directors like R W X let's strike an example to see the test fired permission. Unless this will this never to sit. All permissions read, write and execute to the other users. Ch mood Oh, equal R w x This to check. And this this just done to add the execution permission to the user group ch mood G plus X This It's chick list the shell test and to remove the read permission from user ch mood. You minus. Are this check done? I hope this has bean informative for you. And I like to thank you for viewing 11. 10 Changing Ownership and Group: changing ownership and group for changing the ownership off a file or directory. You can use this Scientifics Joan User Town short for change Boner In case you want to change the user as well as group for a file or directory, use the Syntex Joan User Colon Group. Let's see this in action. First, let's check the file ownership using the S L. Comment Now to change the fight owner to move Sudo Joan move My fight to check ls this ill my fight and to change user and group toe to do Joan Gordon who? My fight and to check it is official in case you want to change. Group owner only used the comment Change Group C H g R B Some important things. I would like you to know the fight it ISI Group contains all the groups defined in the system. You can use the comment groups to find all the groups you are a member off. You cannot have two groups owning the same file. You don't have nested groups in Lenox. One group cannot be subgroup off. Other. Executing a directory means being allowed to enter at the victory and again possible access to sub directors. I hope this has bean informative for you, and I like to thank you for viewing