`
dino_zhang
  • 浏览: 60629 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Enable and Disable Ubuntu Root Password

阅读更多

Ubuntu is one of the few Linux distributions out there that will not enable the root account.If you want to do something with root permission on the console you have to type sudo before the command.


sudo” means superuser do. “sudo” will prompt for “Password:”. Please specify user password

As you have noticed during the Ubuntu installation there was no question about the root password, as you might have been used to see during other Linux distribution installation process.Because of this your root accout is inactive.

If you want to enable root account (which is not recommended) enter the following command.

$sudo passwd root

This will prompt for a new root password and once you confirm it, you can start using the root account to login.

If you want to disable root account in ubuntu you need to lock the root account by using the following command

$sudo passwd -l root

If you want to work on a root console you’d better use the following command

$sudo -i

分享到:
评论

相关推荐

    ubuntu ref

    ### Ubuntu Reference: Key Commands and Concepts #### Introduction to Ubuntu Cheat Sheet Ubuntu is one of the most popular Linux distributions, widely used by developers and system administrators for...

    Ubuntu下配置telnet,ssh说明

    # unencrypted username/password pairs for authentication. service telnet { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure +=...

    Ubuntu学习笔记

    防火墙管理在Ubuntu中通常使用`ufw`,你可以使用`ufw enable`开启防火墙,`ufw disable`关闭,`shutdown -h now`关机,`shutdown -r now`重启。 系统中的一些重要目录如/bin存放可执行文件,/etc存储配置文件,/usr...

    在ubuntu 16.04 基于devstack 安装openstack ocata版本

    root@newton:/home/devstack/tools# ./create-stack-user.sh ``` #### 五、设置文件权限 1. **修改目录权限**:为Stack用户赋予DevStack目录的完全控制权: ```bash sudo chown -R stack:stack /home/devstack...

    linux下LAMP 手动配置

    本教程将详细介绍如何在Ubuntu 9.04上手动配置LAMP环境,包括Apache 2.2.11、MySQL 5.1.36和PHP 5.3.0的安装和配置步骤。 **一、安装Apache 2.2.11** ...2. **解压** 下载的源码包,例如:`tar zxvf httpd-2.2.11.tar......

Global site tag (gtag.js) - Google Analytics