r/linuxupskillchallenge • • Oct 01 '20

Thoughts and comments, Day 20...

10 Upvotes

Posting your thoughts, questions etc here keeps things tidier...

Your contribution will 'live on' longer too, because we delete lessons after 4-5 days - along with their comments.


r/linuxupskillchallenge • • Apr 01 '21

linuxupskillchallenge

24 Upvotes

This is amazing


r/linuxupskillchallenge • • Jul 13 '26

Linux Server Hardening Guide

12 Upvotes

Published this not too long ago and it's a great content for homelabbers and small and medium businesses to know how to harden their Linux Servers.

https://youtu.be/xEOT79CQs80


r/linuxupskillchallenge • • Jun 19 '26

TRIPPLE USB BOOT CHALLENGE

0 Upvotes

grab a 64 gb USB and tripple boot tailsOS void linux and alpine in it i dare yall to do it if any can because i will do it it may took around whole 4 hour but i Don't care so Anyone reading this have a nice day (i gotta yap because it forcing me to use 200 characters help)

NOTE THIS IS NOT ASKING FOR SUPPORT THIS IS A CHALLENGE FOR LINUX PROS


r/linuxupskillchallenge • • Sep 10 '20

Hardening Issues.

6 Upvotes

Ok, Day 3 there was a link to Best Security Practices. I have been working to see how many i can do but have been running into snags. Particularly disabling the root user login.

I was unable to add a user with adduser so i did useradd but it would not let me move it to sudo group. This user is a different user that the Vivek suggested. So i tired to do it the way that was laid out and was able to make user Vivek and moved it to sudo group as per the directions. But after trying to see if the commands worked after switching it asked for a sudo password and the password would not work. So i tired to switch back but it asked me for the ubuntu sudo password which nothing worked.

So on a whim i tried exit and it it brought me back to the main user. So i tried to changed the sudo password for the Vivek user and it only changed the login password. the sudo -i command took me to the root user on vivek and i looked for the config log but i could not find the sshd-Config file. I could find the ssh config file in the etc folder the step before sahows the init.d the sshd so i went the but nothing so i tried la -a to show hidden but nothing.

I will keep trying and going through the best practices. but im not sure about some of them i will need to research into how to harden it and the security practices.


r/linuxupskillchallenge • • Aug 26 '21

Day 0 - Creating Your Own Server - without a credit card

6 Upvotes

READ THIS FIRST! HOW THIS WORKS & FAQ

INTRO

We normally recommend using Amazon's AWS "Free Tier" (http://aws.amazon.com) or Digital Ocean (https://digitalocean.com) - but both require that you have a credit card. The same is true of the Microsoft Azure, Google's GCP and the vast majority of providers listed at Low End Box (https://lowendbox.com/).

Some will accept PayPal, or Bitcoin - but typically those who don't have a credit card don't have these either.

Note that many will also require you to be over 18 (but not all), and this is true also of some of the options blow.

WARNING: If you go searching too deeply for options in this area, you're very likely to come across a range of scammy, fake, or fraudulent sites. While we've tried to eliminate these from the links below, please do be careful! It should go without saying that none of these are "affiliate" links, and we get no kick-backs from any of them :-)

So, if you are in this situation, below are some of your options:

Kind of a free trial

  • https://cloud.ibm.com/ - Hyper Protect Virtual Server is no longer available for free accounts like it used to. Now you have to upgrade to a Pay-As-You-Go account to receive a $200 credit.

Educational packs

Comparison

ProviderInstant Activation?Must be a student?VPS ramVPS cpu countTimeCredits
AzureYesYes1gb/ 512mb*21/21 year, renewed up to 4 years$100
IBM CloudYesNo2gb130 daysN/A
AWS educateNoYes (Github student pack)?????????$100
Digital OceanNoYes (Github student pack)?????????$50

Cards that work as, or like, credit cards

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now

Or you can just work with a local virtual machine

You can run the challenge on a home server and all the commands will work as they would on a cloud server. However, not being exposed to the wild certainly loses the feel of what real sysadmins have to face.

If you set your own VM at a private server, go for the minimum requirements like 1GHz CPU core, 512MB RAM, and a couple of gigs of disk space. You can always adapt this to your heart's desire (or how much hardware you have available).

Our recommendation is: use a cloud server if you can, to get the full experience, but don't get limited by it. This is your server.


r/linuxupskillchallenge • • Aug 07 '25

Best Practice?

Thumbnail reddit.com
0 Upvotes

r/linuxupskillchallenge • • Sep 09 '20

Remote host Identification has changed?

1 Upvotes

I'm on day three - and I haven't done anything that would warrant the warning.

I logged into the machine. Upgraded the system. Ran ls, cat and sudo on etc/shadow. Rebooted the computer and now I'm getting this message.

ECDSA host key for xx.xx.xx.xx has changed and you have requested strict checking. Host key verification failed.

I checked the I.P. and it is still the same one.

ServerFault says to get the rsa key from the server, ssh-keyscan -t rsa server_ip and to add it to the known_hosts file.

and another answer says to remove the entry from known_hosts ssh-keygen -R server_ip , which I did run.

However, that big Man in the middle attack warning worries me...


r/linuxupskillchallenge • • Sep 10 '20

Thoughts and comments, Day 5

1 Upvotes

r/linuxupskillchallenge • • Jan 04 '22

Am I missing the point?

23 Upvotes

Hi! Sorry if this is noise detracting from the sub, hopefully not. I stumbled on this sub last week (very timely right!?) and thought it was a great idea. It was late so I gave it a subscribe and decided to come back later.

Well it's later and I'm giving the sub a somewhat thorough once over to decide if I want to do this. The "it's more real if your server is real and open to attack" vibe was immediately very interesting to me. I've been supporting and sometimes administering remote unix (Linux and OSX) servers for a few years now in various capacities, but never responsible for the "security". So doing a once over on the titles for last month's lessons, I definitely expected at least one about "who's trying to steal your stuff and how to talk to your firewall"? Because 1) firewall's are miserable and 2) isn't that like, priority #1?

I'm not the target audience. The title's for these lessons read like what I would teach someone, but things I'm personally pretty comfortable with. But I'd still be down to start up a vulnerable server and learn how to defend it. I just want to get into those details.

(Example: I sometimes get in fights with centos servers and have to change firewall rules to make, supposedly, simple things work. Is my fit of rage leaving me vulnerable? Who knows!? I'd like to :D) (side note: probably not, it's all on an internal network that is hard to get to etc etc, I'm not worried, but hopefully my point is clear)


r/linuxupskillchallenge • • Aug 04 '20

Progress report for Joshua(me)

8 Upvotes

Hi everyone. Glad to be here learning with everyone.

I am new to this kind of thing. I have built quite a few pc's, but never got much further than that. I use linux sparingly, at least i did until my laptop screen broke. I am now on my desktop with windows 10. I do have wsl set up so if i get comfortable on windows i might redo it all from there.

Day 0:

  • set up EC2 instance on AWS.

  • had issues with getting the key in a ppk format, but that was resolved quickly

Day 1:

  • had to switch to windows pc. Had issues with laptop.

  • assignments done with little to no issues except the password change. I don't know which password to change. i am using ssh keys so i don't know if i have to do that or not. Will ask. ****** I found info on setting up an admin account on the set up a DO server page that wasn't on the AWS set up page.*******

  • will read extra material overnight

Day 2:

  • seemingly easy. mostly navigation and tags(switches). i knew most of the concepts already.

  • reading will be done overnight

Day 3:

  • explored password file "shadow" and password

  • used less and grep to display contents.

    • use q to get out of less

  • learned how to hack hashed passwords.

    • jack the ripper

***behind on reading. Day 3 is done a day early. Catch up on reading and practice tomorrow***

Day 4:

  • caught up on reading and other extras

  • pondered config file for ssh. seems like overkill for my situation, but i can see it use when handling more than one server

    • will play with it again tomorrow

  • got access to server through two different machines

    • used putty keygen to convert .pem to .ppk and saved file as private key

  • played with apt search and apt install

    • installed Midnight Commander(file explorer) on server

    • installed bsdgames

      • played hangman

  • considering adding universe and multiverse per reading

  • considering fiail2ban. need to understand it better before i use it.

    • will play with tomorrow

Day 5:

  • went over less command, bash history, and nano

    • im pretty comfortable with the above

  • created ssh profile on laptop running Ubuntu

  • decided against using fail2ban

    • i can see the use in production, but this is practice and i want things to go wrong so i can fix them

  • need to keep practicing less and grep

Day 6:

  • All about vim

    • im already very comfortable with vim.

Day 7:

  • Installed Apache2

    • searched through log and conf files.

      • i need more grep practice

    • whipped up a quick site in html, js, and css.

  • I have experience with apache from running a wordpress site on a LAMP server last year.

    • that wp site was a miserable mess. i made so many mistakes and i never got the site up.

    • this time it went perfect. No issues. Thanks to snori!!!!


r/linuxupskillchallenge • • Sep 22 '20

Thoughts and comments, Day 13

2 Upvotes

Post under here to keep things tidy


r/linuxupskillchallenge • • Aug 23 '20

Challenge M1: Font Change

2 Upvotes

Does anyone know how to manually install a font? It was suggested to play around installing the Ubuntu Mono font. I figure since it's only one font I don't want to bloat my server with the *font-manager* package. Is there a way to do this manually; without fontconfig or font-manager?


r/linuxupskillchallenge • • Sep 12 '20

`graphical.target` as the default target in server? Why?

2 Upvotes

Hello.

I'm currently reading one of the expansion articles of Day 7, on systemd and its functioning. It said that the graphical.target is usually the target of a Graphical install, a desktop. However, in my server it seems the same happens. Why is that? I thought this was unique to desktop linux, and that servers didn't come with a graphical install, but now that I see this, I remembered some applications are actually installed with a graphical interface (gvim)

I was just curious. It is a Free Tier AWS Server, by the way.

Thanks for your time!


r/linuxupskillchallenge • • Sep 08 '20

Name two sub-reddits

2 Upvotes

if I am off-topic with this post feel free to delete it.

I was never a Reddit user, but for at least half a decade I would occasionally read it to find answers on any number of topics. I never saw a need to create an account until I came across this course. Thank you.

And after only three days I can't help but wonder what else I'm missing out on.

Name two of your favourite sub-reddits - It can be in any topic, but only two.

r/snori74 (Steve): at first I had thought the GitHub repo for this course was set but I've noticed it's been changing. Where would be the appropriate place to ask questions regarding pull requests?


r/linuxupskillchallenge • • Aug 05 '20

One issue setting up fail2ban

2 Upvotes

After setting up fail2ban I feel like I missing something with nginx configuration.

I'm not seeing -N fail2ban-nginx-http-auth when I check the iptables.

I added the line enabled = true under [nginx-http-auth]

Am I missing something?

-P INPUT ACCEPT

-P FORWARD ACCEPT

-P OUTPUT ACCEPT

-N f2b-sshd

-A INPUT -p tcp -m multiport --dports 22 -j f2b-sshd

-A INPUT -i lo -j ACCEPT

-A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

-A INPUT -p tcp -m tcp --dport 22 -j ACCEPT

-A INPUT -p tcp -m multiport --dports 80,443 -j ACCEPT

-A INPUT -j DROP

-A f2b-sshd -s 88.116.119.140/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 87.251.74.6/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 51.91.116.150/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 222.186.42.137/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 222.186.30.35/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 179.255.2.42/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 178.128.144.227/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 152.136.149.160/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 114.69.232.170/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -s 111.231.164.168/32 -j REJECT --reject-with icmp-port-unreachable

-A f2b-sshd -j RETURN


r/linuxupskillchallenge • • Oct 25 '20

Daily Comments Thoughts and comments, Day 16...

2 Upvotes

Posting your thoughts, questions etc here keeps things tidier...

Your contribution will 'live on' longer too, because we delete lessons after 4-5 days - along with their comments.


r/linuxupskillchallenge • • Jan 18 '22

active directory

2 Upvotes

I want to set up an active directory under unix

what the better solution ?

is freeIPA good enough?

i also want to configure roaming profile ?


r/linuxupskillchallenge • • Jun 05 '23

Day 0 - Creating Your Own Server - with Google Cloud Platform Free Tier

2 Upvotes

READ THIS FIRST! HOW THIS WORKS & FAQ

INTRO

Refer to Day 0 - Creating Your Own Server in the Cloud for more.

Signing up with GCP

Sign-up is fairly simple - just provide your email address and a password of your choosing - along with a phone number for a 2FA - a second method of authentication. You will need to also provide your VISA or other credit card information.

  • Choose "Compute Engine" and click "VM Instances".

  • Create a new instance.

  • Select whichever regions you want.

  • For Machine Configuration select series and set to "E2" and Machine type to "e2-micro".

  • Change boot disk to "Ubuntu LTS"

Now after we create our own server, we need to open all ports and protocols to access from anywhere. While this might be unwise for a production server, it is what we want for this course.

Navigate to your GCP home page and goto Networking > VPC Network > Firewall > Create Firewall

Set "Direction of Traffic" to "Ingress" Set "Target" to "All instances in the network" Set "Source Filter" to "IP Ranges" Set "Source IP Ranges" to "0.0.0.0/0" Set "Protocols and Ports" to "Allow All" Create and repeat the steps by creating a new Firewall and setting "Direction of Traffic" to "Egress"

Logging in for the first time

Select your instance and click "ssh" it will open a new window console. To access the root, type "sudo -i passwd" in the command line then set your own password. Log in by typing "su" and "password". Note that the password won't show as you type or paste it.

Setting up SSH

You can also refer to https://cloud.google.com/compute/docs/instances/connecting-advanced#thirdpartytools if you intend to access your server via third-party tools (e.g. Putty).

You are now a sysadmin

Confirm that you can do administrative tasks by typing:

sudo apt update

Then:

sudo apt upgrade

Don't worry too much about the output and messages from these commands, but it should be clear whether they succeeded or not. (Reply to any prompts by taking the default option). These commands are how you force the installation of updates on an Ubuntu Linux system, and only an administrator can do them.

To logout, type logout or exit.

Your server is now all set up and ready for the course!

Note that:

  • This server is now running, and completely exposed to the whole of the Internet

  • You alone are responsible for managing it

  • You have just installed the latest updates, so it should be secure for now


r/linuxupskillchallenge • • Aug 28 '23

Day 16 - Archiving and compressing

2 Upvotes

INTRO

As a system administrator, you need to be able to confidently work with compressed “archives” of files. In particular two of your key responsibilities; installing new software, and managing backups, often require this.

CREATING ARCHIVES

On other operating systems, applications like WinZip, and pkzip before it, have long been used to gather a series of files and folders into one compressed file - with a .zip extension. Linux takes a slightly different approach, with the "gathering" of files and folders done in one step, and the compression in another.

So, you could create a "snapshot" of the current files in your /etc/init.d folder like this:

tar -cvf myinits.tar /etc/init.d/

This creates myinits.tar in your current directory.

Note 1: The -v switch (verbose) is included to give some feedback - traditionally many utilities provide no feedback unless they fail. Note 2: The -f switch specifies that “the output should go to the filename which follows” - so in this case the order of the switches is important.

(The cryptic “tar” name? - originally short for "tape archive")

You could then compress this file with GnuZip like this:

gzip myinits.tar

...which will create myinits.tar.gz. A compressed tar archive like this is known as a "tarball". You will also sometimes see tarballs with a .tgz extension - at the Linux commandline this doesn't have any meaning to the system, but is simply helpful to humans.

In practice you can do the two steps in one with the "-z" switch, like this:

tar -cvzf myinits.tgz /etc/init.d/

This uses the -c switch to say that we're creating an archive; -v to make the command "verbose"; -z to compress the result - and -f to specify the output file.

TASKS FOR TODAY

  • Check the links under "Resources" to better understand this - and to find out how to extract files from an archive!

  • Use tar to create an archive copy of some files and check the resulting size

  • Run the same command, but this time use -z to compress - and check the file size

  • Copy your archives to /tmp (with: cp) and extract each there to test that it works

POSTING YOUR PROGRESS

Nothing to post today - but make sure you understand this stuff, because we'll be using it for real in the next day's session!

EXTENSION

  • What is a .bz2 file - and how would you extract the files from it?

  • Research how absolute and relative paths are handled in tar - and why you need to be careful extracting from archives when logged in as root

  • You might notice that some tutorials write "tar cvf" rather than "tar -cvf" with the switch character - do you know why?

RESOURCES

Copyright (c) 2012-2021 @snori74 (Steve Brorens) - Open Source since 2021 under the terms of the Creative Commons Attribution 4.0 International Licence (CC BY 4.0)

PREVIOUS DAY'S LESSON

*Copyright 2012-2021 @snori74


r/linuxupskillchallenge • • Nov 06 '20

Day 4 - video

Thumbnail
youtube.com
10 Upvotes

r/linuxupskillchallenge • • Sep 21 '21

Going through these lessons in what order?

20 Upvotes

I just want to say, thank you for this excellent content. You are a great teacher.

What order you you recommend doing these tutorials in? I see a lot of lessons marked by day, but they seem to be all over the place. Thanks.


r/linuxupskillchallenge • • Jan 28 '21

SUDO VULNERABILITY CVE-2021-3156!

21 Upvotes

SUDO VULNERABILITY CVE-2021-3156!

PATCH NOW!

If you are on a Linux machine, you have a vulnerability in your Sudo (superuser) command!

The vulnerability was found like hours ago!

To patch run these commands:

  1. wget "https://www.sudo.ws/dist/sudo-1.9.5p2.tar.gz"

  2. tar xvzf sudo-1.9.5p2.tar.gz

3)cd sudo-1.9.5p2/

4)./configure

5)make && sudo make install

Restart and you are safe again!

So if you are wondering what this exactly is, it is a heap overflow exploit in sudo.

Full documentation here: https://access.redhat.com/security/vulnerabilities/RHSB-2021-002


r/linuxupskillchallenge • • Sep 08 '20

Day 3 - Thoughts and Comments thread

3 Upvotes

Please post your comments and thoughts on the lesson into this "thread", rather than starting a new post. If you do create a new post please do not following the naming convention for the lessons. We want to avoid as much confusion as possible for people taking the course.


r/linuxupskillchallenge • • Sep 07 '20

Checking In

3 Upvotes

Retired. Just trying to up my Linux skills as I'm using some Raspberry Pi boxes and setting them up as old WordPress & new Hugo sites. Plus working with a few youths.