What is the ubuntu 16.04 lts server default login & password?

5,272

Solution 1

If you don't remember the password, you can reset it with a liveCD/USB, you need to boot the USB, mount your root partition, chroot and reset the password:

# mkdir /mnt/ubuntu
# mount /dev/sdXY /mnt/ubutnu # your partition numeber
# chroot /mnt/ubuntu /bin/bash
# passwd [your username] # here you reset the password
# exit
# reboot

If You want to know your username put this command in your chroot environment:

# grep 1000 /etc/passwd

It should be the last one and the UID should be 1000 on a fresh installation if you have not a UID 1000 means you have not created a username, so add it, always on your chroot environment:

# uaseradd -s /bin/bash -G users,wheel,... [your username]
# passwd [your username]

Solution 2

With Ubuntu, you do not need to boot a live CD (and chroot) as you should be able to use the ... (recovery mode) option in the grub menus.

To see the grub menu; hold SHIFT as the BIOS ends it's boot-up display.

Select the recovery mode with the cursor keys (then press ENTER) and a new menu appears.

Select and press enter on
fsck Check all file systems
to make all filesystems writable.

Select and press enter on
network Enable networking
... if also need networking (e.g. to run apt-get)

Select and press enter on
root Drop to root shell prompt
... and ENTER once more, to get the root shell prompt.

Now use useradd, usermod, userdel and passwd in the normal way to reset password(s) or create/modify/remove users.


Note also: ALL answers here should be considered "$3cur1ty h0l3z" - anybody with physical access to the machine can do this; root access without effort. So, what to do? -> Keep your computer in a locked room.

Share:
5,272

Related videos on Youtube

Mafuj Shikder
Author by

Mafuj Shikder

enter link description here> (((Open for freelance work)) Contact - [email protected] WhatsApp Business Account:https://wa.me/+8801793875024 WhatsApp Phone Number:+8801793875024 messenger link:https://m.me/mafujshikder0 Telegram Account: Telegram Username:Mafujshikder Telegram Phone Number:+8801793875024 If my answers helped you can buy me a coffee. Account Link: Fiverr:https://www.fiverr.com/mafujshikder?up_rollout=true Upwork:https://www.upwork.com/freelancers/~0115edc233a43c81bb Freelancer:https://www.freelancer.com/u/MafujShikder?w=f PeoplePerHour:https://www.peopleperhour.com/freelancer/development-it/mafuj-shikder-java-deveploper-spring-boot-spring-xvqnvvz Guru:https://www.guru.com/freelancers/mafuj-shikder Truelancer:https://www.truelancer.com/freelancer/mafujshikder17 Github :https://github.com/MafujShikder Twitter:https://twitter.com/MafujShikder Facebook:https://www.facebook.com/mafujshikder0 Linkdin:https://www.linkedin.com/in/mafuj-shikder/ Stackoverflow:https://stackoverflow.com/users/9138830/mafuj-shikder Quora:https://www.quora.com/profile/Mafuj-Shikder-2 Google+:https://plus.google.com/+MAFUJSHIKDER Tumblr:https://java-devleoper.tumblr.com/ Hackerrank:https://www.hackerrank.com/mafujshikder01 Instagram:https://www.instagram.com/mafuj_shikder/ Dribbble:https://dribbble.com/Mafuj Youtube:https://www.youtube.com/channel/UCvYyt11zSXDigs67VXRzb6w?view_as=subscriber Behance:https://www.behance.net/mafujshikd9547 Medium:https://medium.com/@mafujshikder Skype:live:mafujshikder01 Skype profile link:https://join.skype.com/invite/BtT9jPWAreca •Expertise: JAVA,J2SE, J2EE, JAVA , Web Services,JavaScript,Spring Mvc,Hibernate etc. •Comfortable: Angular, Node, Android etc. •Familiar: Chrome extension, Android App, ,Html,CSS,,BootStarp,Ajaxetc. •Tools: Git, Webpack, Chrome Dev Tooletc. •Forgetting: JQuery, JQuery-UI etc · Overall responsibility for the day-to-day operations of the project, Reporting periodically to all the stakeholders, Project Planning and Tracking, Risk analysis,Counter action and Team building and on site deployment. · Excellent Interpersonal skills, outstanding problem solving and decision making skills. This is My software company profile .If anyone need any services anyone can knock through website .Company website all details below

Updated on September 18, 2022

Comments

  • Mafuj Shikder
    Mafuj Shikder over 1 year

    When i installed dual boot ubuntu 16.04 lts server i did not entry any ubuntu server login & password when i opened ubuntu server it wants login & password.What is the ubuntu 16.04 lts server default login & password ?or How to open ubuntu server?

  • Kamil Maciorowski
    Kamil Maciorowski over 5 years
    Note: not every liveCD/USB will work: (1) the implicit premise is it contains Linux; (2) chroot will use the kernel of this live OS, version mismatch may be an issue in general (although the mentioned commands should not be picky, I guess).
  • ensarman
    ensarman over 5 years
    first... thanks, about the editing... my english is not perfect :P second... It is true, Its recommended to use the same liveCD/USB used to install the SO
  • Hannu
    Hannu over 5 years
    Even with use of the actual install media you may have a mismatch, e.g. if there has been updates that included changes to system portions that affects what you're about to handle.