GithubHelp home page GithubHelp logo

Issues with Ubuntu Login about 2122-s2 HOT 5 OPEN

mamayuan avatar mamayuan commented on August 11, 2024
Issues with Ubuntu Login

from 2122-s2.

Comments (5)

danqiye1 avatar danqiye1 commented on August 11, 2024

From the screenshot it seems like sudo apt update ran just fine. You can check your username with command whoami.

Your password and username should be the same as the one from your Windows account.

Let me know if this helped.

from 2122-s2.

mamayuan avatar mamayuan commented on August 11, 2024

From the screenshot it seems like sudo apt update ran just fine. You can check your username with command whoami.

Your password and username should be the same as the one from your Windows account.

Let me know if this helped.

Hi, thank you for your help and apologies for my late response. It seems that my problem was not solved. When I entered whoami, it showed me root. And when I attempted to manually login with root and my windows passpord, it failed... What should I do about this?
Screenshot 2022-01-17 092711

from 2122-s2.

danqiye1 avatar danqiye1 commented on August 11, 2024

I see. It's weird that you have already privilege escalated to root. Technically you can do everything as the root user, but see if you can update the root password with the following command:

passwd root

from 2122-s2.

mamayuan avatar mamayuan commented on August 11, 2024

I see. It's weird that you have already privilege escalated to root. Technically you can do everything as the root user, but see if you can update the root password with the following command:

passwd root

Thank you very much and I have just tried your code. I think I managed to reset the password. That said, do I just continue to login as root for the rest of the module? Or do I need to make other changes?
Screenshot 2022-01-17 101702

from 2122-s2.

danqiye1 avatar danqiye1 commented on August 11, 2024

I think for this class is ok since it is your own machine (but highly not recommended). Usually we try not to use root account since it is the highest privileged account in unix and if you accidentally execute a malware with it, the malware will have root privilege to your machine. So if you use it don't give away your root password, make sure the password is strong, and only run scripts and programs that you are absolutely sure what it is doing.

That said, you can also create a lower privileged user using the command:

adduser

If you are using root account, your home directory will be /root instead of /home/<username>/

from 2122-s2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.