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)

Comments

  • Spoiler Removed

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • Spoiler Removed

    HcKy

    Happy to help. If any of my rambling is useful consider leaving some respect.

  • @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)

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • 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 [email protected](IP ADDRESS) after starting the target.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • 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 [email protected](IP ADDRESS) after starting the target.

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

  • @Shieldmaiden said:

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

    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.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • Spoiler Removed

    HcKy

    Happy to help. If any of my rambling is useful consider leaving some respect.

  • Spoiler Removed

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • 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 "[email protected]_stdnt!"
    

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

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • thanks for your answer i trying to connect to ssh...
    i open my_credentials.txt
    take IP on the botton aside target:
    then
    ssh [email protected]

    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.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • edited February 1

    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

    https://i.postimg.cc/rmRMbWVc/immagine.png

  • edited March 15

    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.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • edited March 16

    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.

  • @NightSleuth said:

    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.

    I am not sure I understand this.

    You don't login as that user in order to ssh as that user. You login to your system as any user who is valid on your system.

    Then you ssh into the box as the htb-student user.

    image

    So just to check:

    • you click on the link to spawn the target system and it will give you an IP address.
    • you ssh in with ssh [email protected](whatever IP it gave you) and then use the password provided.

    If you are tying to switch user before you have SSH'd in, you are trying to switch on your local system.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • I have problem with this task 'What is the name of the hidden "history" file in the htb-user's home directory?', can someone give me like some hints or something..

    I accessed both target machine's home and local workstation home, tried most of ls combinations to see hidden files, but actually got nothing..

    What am I doing wrong here, and I would be thankful if you can give me some hints.

  • @hajdarevicedin said:

    I have problem with this task 'What is the name of the hidden "history" file in the htb-user's home directory?', can someone give me like some hints or something..

    I accessed both target machine's home and local workstation home, tried most of ls combinations to see hidden files, but actually got nothing..

    What am I doing wrong here, and I would be thankful if you can give me some hints.

    First, it really needs to be on the target machine. HTB can't know how you have your machine configured so asking questions about it wouldn't make sense.

    Try ls -al and see if anything stands out.

    If you are still struggling, try ls -al | grep history and see what that returns.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • Type your comment> @TazWake said:

    @NightSleuth said:

    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.

    I am not sure I understand this.

    You don't login as that user in order to ssh as that user. You login to your system as any user who is valid on your system.

    Then you ssh into the box as the htb-student user.

    image

    So just to check:

    • you click on the link to spawn the target system and it will give you an IP address.
    • you ssh in with ssh [email protected](whatever IP it gave you) and then use the password provided.

    If you are tying to switch user before you have SSH'd in, you are trying to switch on your local system.

    OOhhhh, I didn't know that that was the sintaxe. I was trying something different. I probably didn't understand a concept; cause I didn't really know about the @ and then the IP. I'm still a noob (just for the record). It worked. Thank you though. :)

  • @NightSleuth said:

    OOhhhh, I didn't know that that was the sintaxe. I was trying something different. I probably didn't understand a concept; cause I didn't really know about the @ and then the IP. I'm still a noob (just for the record). It worked. Thank you though. :)

    I am glad to have helped.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • Type your comment> @Shieldmaiden said:

    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)

    Answer:
    Home directory : /home/htb-student
    MTU 1500: ens192 (The one on which IP is given, it may change in your turn)

  • Type your comment> @TazWake said:

    @NightSleuth said:

    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.

    I am not sure I understand this.

    You don't login as that user in order to ssh as that user. You login to your system as any user who is valid on your system.

    Then you ssh into the box as the htb-student user.

    image

    So just to check:

    • you click on the link to spawn the target system and it will give you an IP address.
    • you ssh in with ssh [email protected](whatever IP it gave you) and then use the password provided.

    If you are tying to switch user before you have SSH'd in, you are trying to switch on your local system.

    I did the method mentioned above, but after entering ssh [email protected], the machine just gets stuck and after a few mins it says connection timed out.
    I don't really understand what to do.
    Please help me (if it seems dumb I'm sorry)

  • @luciferc0027 said:

    I did the method mentioned above, but after entering ssh [email protected], the machine just gets stuck and after a few mins it says connection timed out.
    I don't really understand what to do.
    Please help me (if it seems dumb I'm sorry)

    Ok, some things to check:

    • You clicked the link to spawn the target machine and it gave you an IP address
    • You connect with ssh [email protected](the IP address it gave you - for example: ssh [email protected].

    The timing out implies that it cant find the target system - the most likely cause is that it didn't get spawned correctly.

    Note: I am not going to be available much in September.

    TazWake

    Note: https://www.nohello.com/

    Happy to help people but PLEASE explain your problem in as much detail as possible! If you say vague things like "It's not working", I cant help. This isn't Twitter so my DMs are always open.

  • Hey team...I've been trying to find the hidden "history" file in my home directory to do What is the name of the hidden "history" file in the htb-user's home directory?

    I've tried ls -ash, ls -a1 and just about every other combination I can think of. I get this output:
    drwxr-xr-x 5 root root 4096 Aug 3 12:08 .
    drwxr-xr-x 24 root root 4096 Aug 3 12:08 ..
    drwxr-xr-x 6 cry0l1t3 cry0l1t3 4096 Aug 3 12:08 cry0l1t3
    drwxr-xr-x 4 htb-student htb-student 4096 Aug 3 12:08 htb-student
    drwxr-xr-x 6 mrb3n mrb3n 4096 Aug 3 12:08 mrb3n
    Nothing I'm thinking of seems to work...Can anyone suggest what I'm doing wrong. I have ssh'd to the target machine...but I'm lost

    Any help is greatly appreciated

    Thanks All
  • What you're showing seems to be /home and not the htb-student's home directory, which would be located at /home/htb-student. Usually this is the directory you're placed into when you log in, if not, you can type "cd ~".

    dragonista

  • i was trying to run
    systemctl start ssh
    but it is asking for a password , i didn't set one ?
Sign In to comment.