cannot safe edited sources.info. how to get rights ?

Asked by Gerrit

I want to add some lines to /etc/apt/sources.info
found how to change the file but after edit i do not have the rights to save.
How can i login as root or elevate my rights to be able to save the file ?

Gerrit.

Question information

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

gksudo gedit /etc/apt/sources.list

Ubuntu uses sudo or gksudo to give temporary superuser rights.

Revision history for this message
Gerrit (heijting) said :
#2

Thanks arochester, that solved my question.

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

You dont need to log in as root, or elevate anybrights. Your user is in a group called 'sudo' which allowsbyou to use sudo and gksudo (gksudo for GUI apps like gedit). If you add a user to the group then have them log off and on they will get the new access. The first user you make is in this group by default.
This gives you control over which users can run admin tasks as well as audit what users do what using sudo.