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 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...
# 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中通常使用`ufw`,你可以使用`ufw enable`开启防火墙,`ufw disable`关闭,`shutdown -h now`关机,`shutdown -r now`重启。 系统中的一些重要目录如/bin存放可执行文件,/etc存储配置文件,/usr...
root@newton:/home/devstack/tools# ./create-stack-user.sh ``` #### 五、设置文件权限 1. **修改目录权限**:为Stack用户赋予DevStack目录的完全控制权: ```bash sudo chown -R stack:stack /home/devstack...
本教程将详细介绍如何在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......