How can i become aroot?

Asked by Ahmed Thabet

i want to do some changes in some files, but permission is denied as i am not a root.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
arochester (arochester) said :
#1

Ubuntu uses sudo instead of su. That gives you root powers for about 15 minutes.

Look e.g. at http://ubuntuguide.org/wiki/Ubuntu:Trusty#Introduction

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

In what way do you want to edit them?

You can use:

sudo gedit

Then you can open any text file and get write access. Sudo should be used when you need write access to files outside of your user's home. You can control what users can use sudo by adding them to the sudo group. Your first system user made at install time is in the sudo group by default.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#3

Please read this:

https://help.ubuntu.com/community/RootSudo

I suggest learning more about Ubuntu using these guides:

https://help.ubuntu.com/community/ExternalGuides

Can you help with this problem?

Provide an answer of your own, or ask Ahmed Thabet for more information if necessary.

To post a message you must log in.