LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-24-2005, 06:24 PM   #1
browncow
Member
 
Registered: Aug 2004
Posts: 40

Rep: Reputation: 15
Logining as root


Hi, i am new to ubuntu and linux in genral.

I am trying to login as root, but I do not know the password. I have installed it twice now, and it does not ask me for one. It also does not accept the password i created for my one and only user login.

Am i missing something here?
or whats going on?

Thanks in advance for any help.
 
Old 05-24-2005, 06:56 PM   #2
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
If you need to change roots password (you don't need to know it) type

sudo passwd root

It will ask for your user password, not root's.

logging into the Graphical Interface requires a little more work.
 
Old 05-24-2005, 07:11 PM   #3
browncow
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
thnx dude, it allowed me to be able to do what i wanted to do.
 
Old 05-24-2005, 07:51 PM   #4
browncow
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
Ok, I am trying to edit my sources for apt-get however I am "not privledged to do so"
I think this comes back to my problem as not being able to login in as root.
Can I edit this sources.list file from the command line??

Also what are some good FTP's for files.
I want to make sure the right ones are in there.
 
Old 05-24-2005, 08:25 PM   #5
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I've always been able to edit source.list by

sudo vi /etc/apt/source.list

Your other two questions I don't understand. "what are some good FTP's for file" Are you asking what is a good ftp application?
 
Old 05-24-2005, 08:30 PM   #6
browncow
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
no sorry for the lack of proper english.
What i meant to say is is, what are some good sources for the apt-get source list.
 
Old 05-24-2005, 08:33 PM   #7
browncow
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
I used
sudo vi /etc/apt/source.list
to try and edit the list. But it brings up a page the looks similair to this....

~
~
~


I am sorry for my noobness but i really want to learn this.
If it is easier jsut point me to some good refernce material.
 
Old 05-24-2005, 09:00 PM   #8
browncow
Member
 
Registered: Aug 2004
Posts: 40

Original Poster
Rep: Reputation: 15
w00t w00t.
Problem solved.

Instead of vi i used the gnome text editor.
Worked a lot better.
But thanks for the input.

Last edited by browncow; 05-24-2005 at 09:01 PM.
 
Old 05-24-2005, 09:17 PM   #9
speel
Member
 
Registered: Apr 2004
Location: queens , nyc
Distribution: Slackware , Ubuntu
Posts: 349

Rep: Reputation: 30
.. or just use synaptic to edit your sources
 
Old 05-25-2005, 03:42 PM   #10
piratu
Member
 
Registered: Oct 2003
Location: FRANCE
Distribution: SLED 10
Posts: 98

Rep: Reputation: 15
Question

I have a question, how do I change the root's password or hwo do I found it?

I've installed a kubuntu and shocked : it demands me a root password when launching synaptic, but it never prompted me to type it when I've installed it!

what is this distro, a bad joke or what?

how can I type "su -" and do my little dirty jobs as root?
 
Old 05-25-2005, 03:51 PM   #11
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
When you type sudo and a command, it asks for your user password, not roots. You can't find out roots password, but you can change it. type sudo passwd root it will ask for your user's password and then ask you to input Root's new password.
 
Old 05-25-2005, 04:25 PM   #12
piratu
Member
 
Registered: Oct 2003
Location: FRANCE
Distribution: SLED 10
Posts: 98

Rep: Reputation: 15
Quote:
Originally posted by musicman_ace
When you type sudo and a command, it asks for your user password, not roots. You can't find out roots password, but you can change it. type sudo passwd root it will ask for your user's password and then ask you to input Root's new password.
whow, shut me dead! is the first time I'm seeing this! ok, got the point about that sudo command, I never used it because there are cases when sudo doesn't work and you have to be root (... few years from now, I forgot that sudo really existed)

now, typing sudo ... helps you doing things as root (but you're not root, just gives you root's rights for the typed command with sudo), means that you're obliged to change thr root password to be able to run synaptic and other graphic config toos, isn't it?

Last edited by piratu; 05-25-2005 at 04:59 PM.
 
Old 05-25-2005, 06:40 PM   #13
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I guess I don't understand your question.

If you don't know root's password, just change it like I said above. Once that is done, you can type su and then enter the root password that you just changed. You will then be logged in as root. If you want to log in to Gnome/KDE as root, there are guides out there, but since that is the most destructive thing to do, I don't advise it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM
Mozilla crashes when logining in to LinuxQuestions.org tornadoburn LQ Suggestions & Feedback 2 11-28-2003 07:08 AM
Logining in Vexixx Linux - Newbie 4 12-26-2002 07:30 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration