🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 4 Min Lesezeit
0

Linux Administration Tasks with Use Cases

↗ Quelle (dev.to)
🗣️ Stimme:

Managing a Linux system effectively requires proficiency in a wide range of administrative tasks. Below is a guide to key tasks with examples and use cases to streamline operations and ensure security.









1. Custom Apache User Setup



Objective: Create a dedicated Apache user for running the web server securely.


Commands:




CODE
sudo useradd -r -d /var/www -s /sbin/nologin apache
sudo chown -R apache:apache /var/www






Use Case: Secure a web server by running Apache as a non-privileged user.









2. Group Creation and User Assignment



Objective: Create a group for developers and assign users.


Commands:




CODE
sudo groupadd devteam
sudo usermod -aG devteam user1






Use Case: Facilitate collaboration by giving group-level permissions to project files.









3. Linux User Setup with Non-Interactive Shell



Objective: Create a user with no interactive shell to limit login access.


Commands:




CODE
sudo useradd -s /sbin/nologin backupuser






Use Case: Use for users who only require FTP or backup services.









4. Service User Creation without Home Directory



Objective: Add a service-specific user without a home directory.


Commands:




CODE
sudo useradd -M -r -s /bin/false serviceuser






Use Case: Securely run background services or daemons.









5. Temporary User Setup with Expiry



Objective: Create a user account with an expiration date.


Commands:




CODE
sudo useradd -e 2024-12-31 tempuser






Use Case: Allow temporary access for contractors or short-term projects.









6. Linux User Data Transfer



Objective: Transfer user data to another directory or server.


Commands:




CODE
sudo rsync -av /home/user1/ /backup/user1/






Use Case: Backup or migrate user data during system upgrades.









7. Secure Root SSH Access



Objective: Restrict SSH access for root users.


Steps:




  1. Edit the SSH configuration file:



CODE
   sudo nano /etc/ssh/sshd_config






  1. Disable root login:



CODE
   PermitRootLogin no






  1. Restart SSH:



CODE
   sudo systemctl restart sshd





Use Case: Prevent unauthorized root access to the server.







8. Data Backup for Developer



Objective: Schedule regular backups for developers.


Commands:




CODE
crontab -e
# Add the following line:
0 2 * * * tar -czf /backup/dev_backup_$(date +\%F).tar.gz /home/dev






Use Case: Ensure developers' data is secure in case of accidental deletion.









9. Script Execution Permissions



Objective: Make a script executable.


Commands:




CODE
chmod +x script.sh
./script.sh






Use Case: Run custom scripts for automation or system management.









10. File Permission Correction



Objective: Correct permissions for shared directories.


Commands:




CODE
sudo chmod -R 775 /shared_folder
sudo chown -R user:group /shared_folder






Use Case: Prevent unauthorized access to sensitive shared files.









11. String Replacement



Objective: Replace strings in configuration files.


Commands:




CODE
sed -i 's/oldstring/newstring/g' config.txt






Use Case: Update URLs, paths, or configurations programmatically.









12. Secure Data Transfer



Objective: Transfer data securely between servers.


Commands:




CODE
scp file.tar.gz user@remote:/path/to/destination






Use Case: Migrate sensitive data between servers securely.









13. Restrict Cron Access



Objective: Restrict specific users from scheduling cron jobs.


Commands:


Add users to /etc/cron.deny:




CODE
echo "user1" | sudo tee -a /etc/cron.deny






Use Case: Prevent misuse of system resources.









14. Default GUI Boot Configuration



Objective: Change default boot to GUI mode.


Commands:




CODE
sudo systemctl set-default graphical.target
sudo reboot






Use Case: Enable a desktop environment for easier management.









15. Timezone Alignment



Objective: Set the correct timezone for the server.


Commands:




CODE
sudo timedatectl set-timezone Asia/Kolkata






Use Case: Align logs and cron jobs with local time.









16. Firewall Configuration



Objective: Set up and enable a firewall.


Commands:




CODE
sudo ufw allow 22
sudo ufw enable






Use Case: Secure the server by controlling network access.









17. Process Limit Adjustment



Objective: Modify user process limits.


Steps:




  1. Edit limits file:



CODE
   sudo nano /etc/security/limits.conf






  1. Add or modify:



CODE
   user1 soft nproc 1024





Use Case: Prevent resource exhaustion due to excessive processes.







18. SELinux Installation and Configuration



Objective: Enable SELinux for enhanced security.


Commands:




CODE
sudo apt install selinux
sudo setenforce 1
sudo sestatus






Use Case: Enforce mandatory access controls on critical systems.






_By implementing these tasks, as a Linux administrators you can efficiently manage systems, ensure security, and optimize performance for varied use cases.



Happy Learning !!! _

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Linux Administration Tasks with Use Cases

Thematisch verwandte Begriffe: Linux, Administration, Tasks, with · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...