Book Image

Hands-On Linux Administration on Azure - Second Edition

By : Kamesh Ganesan, Rithin Skaria, Frederik Vos
Book Image

Hands-On Linux Administration on Azure - Second Edition

By: Kamesh Ganesan, Rithin Skaria, Frederik Vos

Overview of this book

Thanks to its flexibility in delivering scalable cloud solutions, Microsoft Azure is a suitable platform for managing all your workloads. You can use it to implement Linux virtual machines and containers, and to create applications in open source languages with open APIs. This Linux administration book first takes you through the fundamentals of Linux and Azure to prepare you for the more advanced Linux features in later chapters. With the help of real-world examples, you’ll learn how to deploy virtual machines (VMs) in Azure, expand their capabilities, and manage them efficiently. You will manage containers and use them to run applications reliably, and in the concluding chapter, you'll explore troubleshooting techniques using a variety of open source tools. By the end of this book, you'll be proficient in administering Linux on Azure and leveraging the tools required for deployment.
Table of Contents (14 chapters)
13
Index

Chapter 3: Basic Linux Administration

  1. for user in Lisa John Karel Carola; useradd $user; done.
  2. Execute passwd <user> and enter welc0meITG and it will ask you to enter the password again to confirm, so enter welc0meITG again.
  3. getent<user>.
  4. groupadd finance; groupadd staff.
  5. groupmems -g <group_name> -a <user_name>; alternatively, usermod –a –G <group_name> <user_name>.
  6. To create the directory and set group ownership, execute the following:
    mkdir /home/staff
    chown staff /home/staff
    chgrp staff /home/staff

    Similarly, for finance, execute these commands:

    mkdir /home/finance
    chown finance /home/finance
    chgrp finance /home/finance
  7. chmod –R g+r /home/finance.
  8. The default get access control list (getfacl -d) will list the ACL of a user.