Linux Fundamentals

I’m sorry that this will be obvious to 99% of you but i’m a noob and i’m currently working on the Linux Fundamentals module. The question asks “What is the path to htb-student’s home directory?” so I put my answer as following: /home/(and my username). It’s saying it’s incorrect but that’s what it told me my home directory was??? The same has happened with the question “What is the name of the network interface that MTU is set to 1500?” and I put the answer: eth0 Because that’s the network it showed MTU set to 1500 but this was also incorrect!!
Please help! (I apologise again if i’m being such a noob lol)

Spoiler Removed

Spoiler Removed

@HcKy said:

I think they need to make that “ssh to target” portion bigger, or at least more obvious. It’s actually a smaller font than everything else and it looks like a lot of people who are learning are missing it.

Agreed.

I cracked and had a look at this “lab” on Academy. Its actually quite interesting.

I’ve hit a brick wall on one question which is entertaining and frustrating (starting a server with npm, as it doesn’t seem to have npm installed)

Type your comment> @HcKy said:

Type your comment> @TazWake said:

I cant help in detail because I’ve never looked at the module.

I would suggest the correct answer is /home/htb-student.

With the network interface, are you sure you have used ssh to connect into the target instance (the first question)

I think they need to make that “ssh to target” portion bigger, or at least more obvious. It’s actually a smaller font than everything else and it looks like a lot of people who are learning are missing it.

I just clicked on ‘start instance’ and it has already connected me to the VPN. I think I connected fine???

@Shieldmaiden said:

I just clicked on ‘start instance’ and it has already connected me to the VPN. I think I connected fine???

You connected to the parrot instance fine.

You didn’t connect to the target unless you ran ssh htb-student@(IP ADDRESS) after starting the target.

Type your comment> @TazWake said:

@Shieldmaiden said:

I just clicked on ‘start instance’ and it has already connected me to the VPN. I think I connected fine???

You connected to the parrot instance fine.

You didn’t connect to the target unless you ran ssh htb-student@(IP ADDRESS) after starting the target.

I have the correct answer now perfect. Tysm!! SMH the academy never taught me to do that :confused:

@Shieldmaiden said:

I have the correct answer now perfect. Tysm!! SMH the academy never taught me to do that :confused:

Glad you’ve got it now. If you ever solve the npm question later on, please let me know. I have no clue how to answer it.

Spoiler Removed

Spoiler Removed

Hi everyone, I don’t understan why at the question about kernel I cannot figure out correct answer,
Which kernel version is installed on the system? (Format: 1.22.3)?

I use
uname -v

it asnwer me
SMP Parrot 5.5.17-1parrot1 (2020-04-25)
I tryed

-SMP Parrot 5.5.17-1parrot1 (2020-04-25)
-Parrot 5.5.17-1parrot1 (2020-04-25)
-5.5.17-1parrot1 (2020-04-25)
-Parrot 5.5.17-1parrot1
-Parrot 5.5.17-1
-Parrot 5.5.17
-5.5.17-1parrot1
-5.5.17-1
-5.5.17

I don’t have idea

It looks like you are running this on your own system.

At the start of the questions is a bit which says:

Target: Click here to spawn the target system!
 
 SSH to with user "htb-student" and password "HTB_@cademy_stdnt!"

You need to spawn a target and connect to it. Then get the information from that system.

thanks for your answer i trying to connect to ssh…
i open my_credentials.txt
take IP on the botton aside target:
then
ssh username@targetip

when it ask password i’m using that i toke in txt file…but is not correct…is it normal?

ok sorry… i figure it out… i so stupid i must ssh with username htb_student…i fell dumb…sorry again… all works fine now

Nice one - it is all about learning.

Hi everyone…I’ve a question, what’s is the difference between:

dpkg -l | wc -l
apt list --installed | wc -l

and why they give me different values ? (748 and 738)
and why if it work dpkg -l, the

dpkg -s 

give me error:
–status needs at least on package name argument

I cannot figure out the right number of installed packages

I find the solution, but I dont understand why apt and dpkg give me different reponse

I found a strange stuff the number of packages change without doing anything

It won’t let me switch to user htb-student because this user doesn’t exist. So how am I suppose to ssh a machine with this user if it doesn’t exist?

@NightSleuth said:

It won’t let me switch to user htb-student because this user doesn’t exist. So how am I suppose to ssh a machine with this user if it doesn’t exist?

How are you trying to switch to the user? You ssh in as that user account.

Type your comment> @TazWake said:

@NightSleuth said:

It won’t let me switch to user htb-student because this user doesn’t exist. So how am I suppose to ssh a machine with this user if it doesn’t exist?

How are you trying to switch to the user? You ssh in as that user account.

I’ve tried through ssh and sudo, sudo works between root and the other user, but doesn’t work when I try to switch to htb-student. If I ssh stb-… it won’t work either.

Type your comment> @TazWake said:

@NightSleuth said:

It won’t let me switch to user htb-student because this user doesn’t exist. So how am I suppose to ssh a machine with this user if it doesn’t exist?

How are you trying to switch to the user? You ssh in as that user account.

I can’t even login to that user in order to ssh with the right user.