Linux-1.1root初始密码设置,切换root用户

本文介绍在Ubuntu系统中如何设置root用户的初始密码,包括使用sudo passwd root命令进行密码设定,以及如何在权限不足时切换到root用户的方法。

Ubuntu安装好后,root密码需要自己设置

  • root初始密码设置
    • sudo passwd root
  • 权限不够时,切换root
    • su 回车后输入密码
    • exit 退出登录的账户

 

转载于:https://www.cnblogs.com/bf-blackfish/p/10212906.html

root@pjc-virtual-machine:~# cd OpenPLC_v3 root@pjc-virtual-machine:~/OpenPLC_v3# git checkout v3.0.1 error: pathspec 'v3.0.1' did not match any file(s) known to git root@pjc-virtual-machine:~/OpenPLC_v3# ./install.sh v3.0.1 Error: You must provide a platform name as argument Usage: ./install.sh [platform] where [platform] can be win Install OpenPLC on Windows over Cygwin linux Install OpenPLC on a Debian-based Linux distribution docker Install OpenPLC in a Docker container rpi Install OpenPLC on a Raspberry Pi opi Install OpenPLC on a Orange Pi neuron Install OpenPLC on a UniPi Neuron PLC unipi Install OpenPLC on a Raspberry Pi with UniPi v1.1 PLC custom Skip all specific package installation and tries to install OpenPLC assuming your system already has all dependencies met. This option can be useful if you're trying to install OpenPLC on an unsuported Linux platform or had manually installed all the dependency packages before. root@pjc-virtual-machine:~/OpenPLC_v3# git checkout v3.0.0 && ./install.sh linux error: pathspec 'v3.0.0' did not match any file(s) known to git root@pjc-virtual-machine:~/OpenPLC_v3# git ls-remote --tags origin root@pjc-virtual-machine:~/OpenPLC_v3# git ls-remote --branches origin error: unknown option `branches' usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>] [-q | --quiet] [--exit-code] [--get-url] [--symref] [<repository> [<refs>...]] -q, --quiet do not print remote URL --upload-pack <exec> path of git-upload-pack on the remote host -t, --tags limit to tags -h, --heads limit to heads --refs do not show peeled tags --get-url take url.<base>.insteadOf into account --sort <key> field name to sort on --exit-code exit with exit code 2 if no matching refs are found --symref show underlying ref in addition to the object pointed by it -o, --server-option <server-specific> option to transmit
最新发布
07-31
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值