0% found this document useful (0 votes)
11 views

Some Advanced Linux Concepts For DevOps

Linux admin guide

Uploaded by

mmurugayen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Some Advanced Linux Concepts For DevOps

Linux admin guide

Uploaded by

mmurugayen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

@PRATIKBONDRE29

SOME ADVANCED LINUX


CONCEPTS FOR
DEVOPS

Swipe Left

PRATIK BONDRE
01 USER MANAGEMENT IN LINUX
1.1 Key Aspects of User Management
User Creation: sudo useradd username -
Add new users.
Authentication: Verify with passwords,
MFA, or biometrics.
Authorization: Set permissions and roles.
Roles and Permissions: Configure user
roles.
User Profiles: Manage personal info and
settings.
Password Management: Use sudo
passwd username to set/change
passwords.
Account Deactivation: sudo userdel
username to remove users.
Audit & Monitoring: Track user activities.
Self-Service: Allow users to manage
accounts.
1.2 User Accounts in Linux
Purpose: Control access and system
processes.
Identification: Use usernames and
UIDs.
Types:
Superuser (root): Full system
access.
System User: For services.
Regular User: Standard access.

1.3 Commands for User Management


Create a User: sudo useradd username
Set Password: sudo passwd username
Modify User: sudo usermod -aG
groupname username
Delete User: sudo userdel username
List Users: cat /etc/passwd
View User Details: id username
Change Ownership: sudo chown
username:groupname filename
02 GROUP MANAGEMENT IN LINUX
2.1 Key Aspects of Group Management
Group Creation: Create new groups
with groupadd.
Group Membership: Add or remove
users.
Group Permissions: Configure access
resources.
Roles and Permissions: Assign roles
and permissions.
Group Policies: Apply policies to all
members.
Group Settings: Configure settings like
directories.
Group Modification: Update group
attributes or memberships.
Group Deletion: Remove unnecessary
groups.
2.2 Group Accounts in Linux
Purpose: Organize users for easier
management and permissions.
Identification: Use group names and
GIDs.
Types of Groups:
System Groups: For system services.
Regular User Groups: For human
users.

2.3 Commands for Group Management


Create a Group: sudo groupadd
groupname
Delete a Group: sudo groupdel
groupname
Add User to Group: sudo usermod -aG
groupname username
Remove User from Group: sudo
gpasswd -d username groupname
List All Groups: cat /etc/group
View User’s Groups: groups username
03 ESTABLISHING SSH CONNECTIONS
TO REMOTE SERVERS

3.1 Understanding SSH


What is SSH?: Secure protocol for
connecting to remote servers.
SSH Key Pair: Consists of public and
private keys for authentication.

3.2 Prerequisites
SSH Client: Use ssh command (pre-
installed on Unix-based systems).
SSH Server: Must be running on the
remote server.
3.3 Basic SSH Command
Syntax: ssh [options]
username@hostname
Basic Connection: ssh user@hostname
Specify Port: ssh -p 2222 user@hostname
Using Identity File: ssh -i ~/.ssh/my_key
user@hostname

3.4 Key-Based Authentication


Generate SSH Keys: ssh-keygen -t rsa -b
4096 -C "your_email@example.com"
Copy Public Key: ssh-copy-id
user@remote-server.com

3.5 Common SSH Options


X11 Forwarding: ssh -X user@hostname
Data Compression: ssh -C
user@hostname
Port Forwarding: ssh -N -L
8080:localhost:80 user@hostname
3.6 SSH Configuration
~/.ssh/config: Configure host-specific
settings.

3.7 Secure Practices


Strong Passphrases: Protect private
keys.
Disable Root Login: Enhance security.
Regularly Update Keys: Remove old
keys.
@PRATIKBONDRE29

DON’T FORGET TO
LIKE, SHARE IF YOU
FOUND THIS POST
HELPFUL

You might also like