Q. I have just installed Ubuntu Linux. But, what is the default root password? I can only login as a normal user.

A. This is the mystery for most users - you didn't set a root password, so what is it?

The root user can do anything as this a/c has full access to system. So using root account for daily work can be dangerous.

To be frank root a/c is locked by default under Ubuntu Linux. Therefore, you cannot login as root or use su - command to become superuser.

To run all administrative command use sudo command. sudo allows a permitted user to execute a command as the superuser or another user. Ubuntu setup your default account (the one created during installation) to run all administrative commands.

For example create a new user called bar, you need to type sudo command as follows:
$ sudo adduser bar
Password:

When sudo asks for a password, it needs YOUR OWN Password; this means that a root password is not needed.

Here are few more examples.

Task: Start / stop / restart services stored in /etc/init.d/ directory

$ sudo /etc/init.d/ssh stop
$ sudo /etc/init.d/networking restart

Task: Avoid typing sudo each and every time

Note that this is not recommended until and unless you are an expert and aware of what you are typing:
$ sudo -i

Above command will start /bin/bash as a root shell so that you can enter a root user command w/o using sudo.

http://www.cyberciti.biz/faq/ubuntu-linux-root-password-default-password/

Ubuntu Linux root password - default password相关推荐

  1. ubuntu linux root,Ubuntu 中的 root 用户:你应该知道的重要事情 | Linux 中国

    原标题:Ubuntu 中的 root 用户:你应该知道的重要事情 | Linux 中国 当你刚开始使用 Linux 时,你将发现与 Windows 的很多不同.其中一个"不同的东西" ...

  2. linux ubuntu系统 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)数据

    linux ubuntu系统 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)数据 ...

  3. MySQL: linux mysql access denied for user ‘root’@’localhost'(using password:YES)

    linux安装完mysql后,使用程序连接报以上错误 Access denied for user 'root'@'localhost' (using password:YES) 解决方法,重新设置密 ...

  4. Linux连接mysql 出现Access denied for user ‘root‘@‘localhost‘(using password: YES)错误解决方案

    Linux连接mysql 出现Access denied for user 'root'@'localhost'(using password: YES)错误解决方案 参考文章: (1)Linux连接 ...

  5. ubuntu安装mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES

    通过apt安装方法十分简单,而且这种安装方法安装的mysql版本都是当前最新的版本.这种方式安装好后开机自启动都已经配置好,包括命令行的环境变量,无需手动配置. 如果出现以下问题 ERROR 1045 ...

  6. Linux下Java连接数据库出现 Access denied for user 'root'@'localhost' (using password: YES)错误

    一.问题描述 centos 7 终端键入 mysql -u root -p 输入密码后可成功访问数据库,但使用IDEA编写Java代码实现数据库连接时却出现Access denied for user ...

  7. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    mysql Access denied for user root@localhost错误解决方法总结 www.111cn.net  2012-10-19  编辑:kp12345 mysql Acce ...

  8. MySQL ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)的真正原因...

    在博客Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: N ...

  9. 错误代码#1045 Access denied for user 'root'@'localhost' (using password:YES)

    ############下面是win下面的解决方法############# 遇到MySQL"错误代码#1045 Access denied for user 'root'@'localho ...

最新文章

  1. 最近...(2019-03-18~2019-04-03)
  2. Python 解决 :NameError: name ‘reload‘ is not defined 问题
  3. python 有序字典_(Python基础教程之十七)Python OrderedDict –有序字典
  4. css中会计算的属性,2017年12月聚合文章--calc() ---一个会计算的css属性 | 码友网
  5. 股上涨和下跌天数比_面对下跌,如何信心十足地逢低买入?
  6. tomcat优化-有改protocol 和 缓存 集群方案
  7. 数字字符串转化成 IP 地址
  8. 四菱天线怎么加强_关于自制电视四菱天线材料好坏和买连接线和转接头问题
  9. 迅雷离线网页版API
  10. 3dmax渲染计算机内存不足怎么办,3DMax渲染 提示内存不足怎么办
  11. R可视化绘图二-ggplot2
  12. Windows更改鼠标滚轮方向
  13. 如何在jupyter notebook中设置一级二级三级标题?
  14. 苹果手机如何查看已经连接过的WIFI密码?
  15. chrome主页和新标签页被金山毒霸劫持 处理方法
  16. bzoj 4134 ljw和lzr的hack比赛
  17. Flask蓝本创建名称错误导致的werkzeug.routing.BuildError
  18. 十行 Python 代码就提取了韦小宝的身份证信息
  19. NBA球员出手位置分布图
  20. 【用户——提权——权限管理】

热门文章

  1. FPGA之道(62)时空变换之空间换时间
  2. Quartus 13.1安装心得
  3. redis cluster集群选主
  4. java反射类的字段
  5. web移动端Fixed在Input获取焦点时ios下产生的BUG及处理
  6. 显示-连接-删除管理数据库管理应用
  7. linux shell命令设置内存大小运行jar文件
  8. 【转】Jquery -Ajax 入门练习 Jquery.Ajax 调用后台函数,获取DataTable Json,Asp.net
  9. 结构体为什么要4字节对齐
  10. python列表排序后返回索引排序