使用了腾讯云Ubuntu系统,但是没有root权限怎么办?
位置导航:首页/ 服务器相关 / 饥荒
如果使用腾讯云Ubuntu系统的话,TX大概不会给你root权限,只会给一个Ubuntu用户,本文讲解如何获取root权限
1、使用Ubuntu用户名和你自己设置的密码通过SSH登录

2、登陆成功后,进行以下操作
(1)、输入以下指令,回车;
sudo passwd root
输入密码后需要再确认一遍,注意密码不会在屏幕上显示。
(2)、设置成功后,终端会提示password updated successfully,此时输入以下指令,回车,进入SSH配置页面,如下图所示
sudo vi /etc/ssh/sshd_config

(3)、按下“i”键进入insert mode(插入模式),通过方向键将
光标移动至PermitRootLogin行,将其后内容改为yes

(4)、按下ESC返回command mode(命令行模式),按下“shift
”+“:
”进入Last Line mode,输入“wq”,回车。
3、重启SSH服务并重新登录
(1)、输入下面的指令重启ssh服务,回车
sudo service ssh restart
(2)关闭终端,之后即可使用root账号登录了
大功告成!
友情链接:
手把手教你搭饥荒专用服务器(一)—服务器准备工作
手把手教你搭饥荒专用服务器(二)—环境配置及基本使用
手把手教你搭饥荒专用服务器(三)—MOD及其他高级设置
手把手教你搭饥荒专用服务器(四)—本地存档转专用存档
略
嘿嘿嘿
fiat 500 spare key
Perfect piece of work you have done, this internet site is really cool with fantastic information.
ogłoszenia samochodowe
Bardzo lubię patrzeć i uważam, że ta strona zawiera naprawdę przydatne rzeczy!
generic cialis
I am glad for writing to make you know what a magnificent encounter my friend’s girl gained studying your web site. She learned several pieces, which include what it’s like to possess an awesome helping nature to let other folks very easily know just exactly several multifaceted subject matter. You truly exceeded people’s expectations. Thank you for presenting these powerful, safe, explanatory and in addition fun tips about this topic to Kate.
kamagra generic
I wanted to put you the tiny remark to be able to say thanks a lot over again on the pleasing strategies you have provided in this case. It was really shockingly open-handed with you to make publicly precisely what many of us would’ve offered for an ebook to get some money for themselves, notably now that you might have tried it in case you desired. These solutions in addition served to be the good way to know that other people online have the identical interest really like my personal own to learn more and more related to this matter. I am sure there are numerous more pleasant periods in the future for many who read carefully your site.
seroquel
I’m just commenting to let you be aware of of the fabulous discovery my cousin’s daughter experienced going through your site. She even learned lots of issues, most notably how it is like to have a very effective giving mindset to have many others just gain knowledge of chosen grueling matters. You really did more than our desires. Many thanks for distributing the important, healthy, educational and as well as easy thoughts on the topic to Gloria.
olanzapine buy
Thanks for the suggestions about credit repair on this particular web-site. The things i would offer as advice to people is usually to give up this mentality that they buy at this point and fork out later. Being a society most of us tend to make this happen for many factors. This includes trips, furniture, in addition to items we’d like. However, it is advisable to separate one’s wants from the needs. As long as you’re working to raise your credit ranking score actually you need some trade-offs. For example you may shop online to economize or you can check out second hand outlets instead of high priced department stores intended for clothing.