LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
Search this Thread
Old 02-07-2007, 05:21 PM   #1
jymmi
Member
 
Registered: Mar 2005
Location: Calgary, AB
Distribution: Mint 12 GDM
Posts: 96

Rep: Reputation: 15
Terminal Root....


(Ubuntu 6.06 LTS)

When I go to Terminal, I see the following:

james@james-Desktop....

Now when I type su, it will ask for password, I type in my password that I created during installation, and for some reason, it will say that it is invalid.

Is this because I am already login as Root?

Thanks...
 
Old 02-07-2007, 05:29 PM   #2
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
Ubuntu doesn't assign a password to the root account by default, which means the account is not available. You need to use the sudo command instead.

To login as root at the terminal:
Code:
sudo su -
To assign a password to root so you can su 'as normal':
Code:
sudo passwd root
Don't forget when sudo asks for password, that's YOUR password, not root's password
 
Old 02-07-2007, 05:51 PM   #3
jymmi
Member
 
Registered: Mar 2005
Location: Calgary, AB
Distribution: Mint 12 GDM
Posts: 96

Original Poster
Rep: Reputation: 15
Smile ahhhhhhhhhhhh

I did try sudo as well, but it would give me the help listing of add on commands.

That would explain it then.

Will try for sure.

Thanks...
 
Old 02-07-2007, 06:14 PM   #4
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
su vs sudo is one of those things that linux lovers love to argue over. Ubuntu believes that entering sudo before each command improves security because the machine isn't left in root state. I came from SuSE and "su". At first sudo seemed a little strange because it was different than what I'd become accustomed to. I'm now quite comfortable with sudo. One thing you may not realize is that when you use a series of commands with sudo, only the first asks for the password. There's a timer on this, perhaps 15 minutes. I recommend you try things the Ubuntu way to experience it before breaking with what the distribution creators recommend. Along that same issue, I recommend that you become familiar with Synaptic and Ubuntu repositories before becoming dependent on CLI methods like apt-get.
 
Old 02-07-2007, 06:23 PM   #5
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
Here here... Couldn't agree more.

I think the timeout is set by PAM... Not sure what the default in Ubuntu is - feels closer to 5 minutes than 15, but I could be wrong...
 
Old 02-07-2007, 08:34 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Just for completeness, I totally disagree with the Ubuntu approach. IMHO, anyone that can learn a few CLI moves can learn to type su, followed by a password--and then not do something stupid.
 
Old 02-07-2007, 08:38 PM   #7
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
And conversely, anyone can learn to automatically type "sudo" before a stupid CLI command, so that make the 'protection' redundant also
 
Old 02-07-2007, 09:55 PM   #8
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,776

Rep: Reputation: 66
You can read all about the pros and cons here:
https://help.ubuntu.com/community/RootSudo

By the way, to "log in as root," you can just do
Code:
sudo -s
No need to set a separate root password.
 
Old 02-07-2007, 10:03 PM   #9
jymmi
Member
 
Registered: Mar 2005
Location: Calgary, AB
Distribution: Mint 12 GDM
Posts: 96

Original Poster
Rep: Reputation: 15
That worked fine,

Problem number 1 solved, that work well.

The reason I wanted to do this is to install a untarred program, that is in its own folder, on my desktop, the folder name is Nvu. (program called Nvu)

However when I try to change directory to get into the folder I keep getting a, "Folder or Directory does not exist".

I can get as far as /home/james/ , thats it. When I use Konquer, it is there in plain view.
But I can not get into the folder using Terminal so that I can make the program.

./configure
make
make install
 
Old 02-07-2007, 10:45 PM   #10
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Quote:
Originally Posted by fukawi2
And conversely, anyone can learn to automatically type "sudo" before a stupid CLI command, so that make the 'protection' redundant also
AND---anytime you set out to make something idiot-proof, I will find you 10 idiots who can still break it.

So there...
 
Old 02-26-2007, 10:29 AM   #11
oldmartian
Member
 
Registered: Feb 2007
Location: Akron, Ohio
Distribution: Kubuntu
Posts: 31

Rep: Reputation: 15
Let me get this straight. With super hackers out there anyone can possibly get into my computer to do bad things. But I own the computer and I'm the only one who can't get into my computer.

I've got Kubuntu and I'm just setting up and every turn I make I get a denial unless I go into administrator mode and type in my own password (I'm the owner and sole user, remember) and I get a denial because I don't have a password.

All these excuses in the newsgroups, this web-site and so forth give me excuses...

Why isn't someone from Linux sitting beside me protecting my computer from me? I could do something equally dangerous, like throwing my computer out and buying an Apple?

I JUST WANT A WAY TO GET A ROOT PASSWORD WITHOUT HAVING A ROOT PASSWORD TO DO IT.

Will someone please make me happy that abandoned Windows for Linux? Sorry for the rant, but I want to use my computer, and can't.

Thanks
Oldmartian
 
Old 02-26-2007, 01:50 PM   #12
fragos
Senior Member
 
Registered: May 2004
Location: Fresno CA USA
Distribution: Ubuntu 10.10
Posts: 1,466

Rep: Reputation: 51
The password requested is your personal password. I can see you have been a SuSE 10.1 user and may be accustomed to having to become root to perform administration. Ubuntu and its derivatives take a different approach which eliminates root logins and replaces them with group membership in the "admin" group. As the person that installed you are by default the only member of this group. The purpose of this approach is to limit the amount of time root privileges are active. Use your personal password when requested and you will become accustomed to this approach -- I did.
 
Old 02-26-2007, 03:59 PM   #13
fukawi2
Member
 
Registered: Oct 2006
Location: Melbourne, Australia
Distribution: ArchLinux, ArchServer, Fedora, CentOS
Posts: 448

Rep: Reputation: 34
What you are getting frustrated with is a feature specific to Ubunutu (and Ubuntu based) distributions - I dare say there are other also, but I can't think of them off the top of my head...

The whole beauty of Linux - if it doesn't suit you, you are free to choose another distribution that does suit you

As fragos said, you'll get used to it... I was originally a RedHat / Fedora user and it frustrated the hell out of me "not" having a root account and having to enter my own password when I wanted to administer my computer. It took less than 2 weeks to get used to "the Ubuntu way"
 
Old 02-26-2007, 04:30 PM   #14
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Or, you could switch to Debian.
 
Old 02-26-2007, 04:31 PM   #15
oldmartian
Member
 
Registered: Feb 2007
Location: Akron, Ohio
Distribution: Kubuntu
Posts: 31

Rep: Reputation: 15
I'll try to stop whining, but when I see many references to solving problems by opening a terminal and going to the root.

I try it and it wants a password. I enter my personal password and it's invalid. It makes me feel like I'm sneaking into my own house.

So instead I just type sudo -i and at the prompt I enter my personal password.

Well, that's certainly seems more secure than typing su and then entering a root password.
 
  


Reply

Tags
mint, password, root, sudo, ubuntu, xubuntu


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
Logging on as root from The Terminal bobbasic2002 Linux - General 3 03-16-2014 06:44 PM
terminal root to user Lar Linux - Software 4 01-07-2006 07:34 PM
Log in terminal as Root ron126 Linux - Newbie 3 03-22-2005 10:45 AM
login as root through terminal! shycalais Linux - Newbie 3 10-17-2003 03:51 AM
Can't SU ROOT in terminal lhoff Linux - General 39 04-01-2002 01:04 PM


All times are GMT -5. The time now is 04:42 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 Google+: linuxquestions
Open Source Consulting | Domain Registration