Skip to main content

100 Reps

Linux Admin: SystemD

systemd loads up Linux faster than its the older sysvinit.

It manages Linux services


Use this to see the boot services

systemd-analyze


You can even put it into a graphic

systemd-analyze plot > SystemBoot.svg


Check the state of a service:

systemctl --state bluetooth


List the services:

systemctl -t service


Start and stop a service

systemctl start ssh

systemctl stop ssh

N.B. don't need the ".service" suffix


Check the status of a service

systemctl status ssh.service


 Control groups set limits on the system resources of services

An attacker trying to run crypto-mining software on your server might check and modify these limits

Comments

Popular posts from this blog

PicoCTF: Low Level Binary Intro Playlist

Mochi's Tale Mochi's Tale is a really cool little game that teaches you how to "find things out" through experimentation. I found it a really helpful way to get you into the rhythm of learning rules without being told what they are in the first place.

Linux Admin: Managing Users

I read through Chapter 2 of Linux Admin for Absolute Beginners by Martin Stevenson Key Learnings: Add Users Passwords User groups How to add users The flags of adduser varies across different version of Linux, so consult the man pages for more info. I am practising on Kali Linux, the simplest command is: sudo adduser --comment "Gym Owner Terry Crews" tcrews You will need root access for this. So using the root user or adding sudo will work. Sometimes you'll see another command useradd instead. The recommendation is to always use adduser. adduser is a wrapper for useradd.  adduser is more user friendly and interactive than its back-end useradd . There's no difference in features provided. Why is this important? This is how we can create an account for users to access Linux servers. If you have a new employee at your company or student who enters the university, they'll need access to the shared drive, a private drive for themselves etc. Groups Groups keep users i

PicoCTF: The Debugger

GDB baby step 1  Can you figure out what is in the eax register at the end of the main function?  For Mac, gdb can be installed via homebrew: brew install gdbGDB baby step 2 Learn how to disassemble a program from binary file. Here we can see that in line 15, 0x86342 is copied into eax. The output here seems to reverse the arguments.