开发者

root account in ubuntu

I had installed ubuntu 10.04.

A user account has been created under my name.

But no question has been asked of root account.

So, I was wondering how to login under root account.

Kindly provide some s开发者_如何学Pythonuggestions.


Ubuntu is secure because of that very feature. The root account is very dangerous to use. If you make a file with that account, only root can delete it. The trash can fills up, but you can't empty it. It's a pain, so don't do it.

You are probably needing to do something with elevated privileges. The command sudo lets you do just that.

It lets you run individual commands as root, without being root. It's quite simple to use:

sudo do --stuff=here

And you will be prompted for a password (your password, not root's).


Typically, people are happy with sudo(8) access to system administrator commands. I personally love sudo -s.

But if you must enable direct logins to root, Ubuntu has provided instructions you can follow.


One of the things i do not like from ubuntu is this thing.

In order to "create" a root account, you can do

sudo passwd

Then you will type a password, after that you can always use

su

In order to login as root, and of course, sudo is still there anyway :)


You don't need to login as root

Instead you use sudo to perform those tasks.

It will ask for your password.


In ubuntu, you use your user account instead. Use:

sudo "what you want to do"

In a terminal to perform a task with elevated rights.

If you specifically want to log on as root, use:

sudo su
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜