By default, ubuntu root can change the initial password, logout, and IP address.

Source: Internet
Author: User

After Ubuntu is installed, the root user does not have the default password, because you have not set the password for the root user. Your first user is in the admin group and can set the password for the root user, so you don't have to worry about the number of your own passwords, because they don't exist at all.

Enter the following command on the Port:

Sudo passwd root
[Sudo] password for you: ---> enter your password and do not echo
Enter new UNIX password: ---> set the root password
Retype new UNIX password: --> repeated

Certificate --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The logout command after entering X

Gnome Environment: gnome-session-save -- logout
Opebox environment: openbox -- exit

Certificate ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Modify the IP address of ubuntu

Temporarily modify IP Address:
Sudo ifconfig eth0 192.168.X.X netmask 255.255.255.0 up

Permanent IP address modification:
Sudo vim/etc/network/interface

Auto lo
Iface lo inet loopback
Auto eth0
Iface eth0 inet static
Hwaddress ether XX: XX (here is the MAC address to be set)
Address 192.168.X.X (the IP address to be set here)
Netmask 255.255.255.0
Gateway 192.168.X.X (the gateway to be set here)

Then restart the Network Configuration:
Sudo/etc/init. d/networking restart

OK!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.