LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2007, 06:12 PM   #1
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Rep: Reputation: 30
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
 
Old 06-08-2007, 06:59 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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>
 
Old 06-08-2007, 07:25 PM   #3
mitchell7man
Member
 
Registered: Jan 2007
Location: Provo, UT
Distribution: OSX - Fedora
Posts: 458

Rep: Reputation: 31
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...
 
Old 06-08-2007, 07:30 PM   #4
bookie
Member
 
Registered: Nov 2006
Location: Sweden
Distribution: Testing just about everything.....Debian still a favourite and now Dreamlinux!!
Posts: 320

Original Poster
Rep: Reputation: 30
update

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

Thanks again.
bookie
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
aftr sudo cmd and pswd i get this E: Type 'http://archive.ubuntu.com/ubuntu' is not k turoblaztr Linux - General 1 01-14-2007 11:29 AM
ubuntu partitioning tool does not see external usb hard drive when installing ubuntu fakie_flip Linux - Software 2 07-30-2006 01:44 AM
UBUNTU 5.04 PPTP configuration problem . On the Help Page of ubuntu is strange proble ReGgaE-Bg Ubuntu 0 06-13-2006 07:33 AM
LXer: Printing with Ubuntu: Insights for a quick and easy Ubuntu printer installation LXer Syndicated Linux News 0 06-03-2006 10:54 AM


All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration