LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/ubuntu-560311/)

bookie 06-08-2007 05:12 PM

ubuntu
 
Hi again, trying to use ubuntu but find that getting root access isn't so easy. I am trying to edit /etc/apt/source.list , but for some reason it is "read only". Why can't we log in as root? We all know the risks of working as root.

Does anyone know how I can edit this file?

bookie

pixellany 06-08-2007 05:59 PM

Ubuntu stands alone in disabling the root user by default.

Easy to fix:
sudo passwd root
enter your user password
enter new root passwd at the prompt

Now you can su to become root when needed

Or---just use sudo for things that need root powers.

To open a files as root with a graphical editor--eg gedit:
su
gedit <filename>

OR

sudo gedit <filename>

mitchell7man 06-08-2007 06:25 PM

Hey bookie, i don't recommend, making your root account just do this "sudo gedit /etc/apt/source.list " iw ill open the file, and you will be able to save it, any time you need to be root for something, just put sudo then the command, gedit is the gedit text editor etc.... btw the password it asks for is your normal user password, good luck...

bookie 06-08-2007 06:30 PM

update
 
Thanks for the help guys. It is always easy when you know how.

Thanks again.
bookie


All times are GMT -5. The time now is 04:41 AM.