LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-09-2008, 12:38 PM   #1
7pack
Member
 
Registered: Jul 2008
Location: la
Distribution: Slackware 12.2, Ubuntu
Posts: 85

Rep: Reputation: 15
Can't get 'su' to work for me.


Linux newbie that's being humbled again. Managed to get my monitor resolution problem solved and my wireless is zipping right along, giving me enough confidence to get just a wee bit cocky. However linux being what it is....I now come before you with a slice of humble pie in each hand. This one is very simple I'm sure...but for the life of me I can't figure it out. (could be a senior moment/hour/day). In a terminal window I use the 'su' command and it will ask for my password...after entering I get "Authentication failure".....I'm sure it has something to do with me not setting the system up correctly. The password works ok when getting into Administration windows etc. And while I'm at it tell me please why "sudo gedit /etc/X11/xorg.conf" works and just a simple "su" will not.

Could it be that I've set it up so I'm signing in as root and the system wants passwords that have not been issued yet? Geez.

I'll get it one day.

Thanks again....just an old geezer trying to stay busy.
 
Old 09-09-2008, 12:56 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Ubuntu uses sudo by design not su. See here for an explaination of sudo: http://en.wikipedia.org/wiki/Sudo there is also a link to an explaination of su.
 
Old 09-09-2008, 02:09 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You can enable the root account in Ubuntu by doing: "sudo passwd root". Then you can take on root powers by entering "su" and the new root password. (Just like every other version of Linux on the planet----except that Ubuntu will still want your USER password whenever you open up a system config utility)

This "no root user" nonsense is the ONLY flaw in Ubuntu.......
 
Old 09-09-2008, 05:22 PM   #4
7pack
Member
 
Registered: Jul 2008
Location: la
Distribution: Slackware 12.2, Ubuntu
Posts: 85

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany View Post
You can enable the root account in Ubuntu by doing: "sudo passwd root". Then you can take on root powers by entering "su" and the new root password.
This "no root user" nonsense is the ONLY flaw in Ubuntu.......
Now it makes sense.....thanks 'pixellany.'
 
Old 09-09-2008, 05:30 PM   #5
nny0000
Member
 
Registered: Aug 2003
Distribution: Slackware, Ubuntu
Posts: 158

Rep: Reputation: 30
Another quick way to get a root prompt is to 'sudo su -' at the command prompt. Enter your user password and voila! a root prompt.
 
Old 09-09-2008, 06:52 PM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by nny0000 View Post
Another quick way to get a root prompt is to 'sudo su -' at the command prompt. Enter your user password and voila! a root prompt.
I go into root mode an average of 37 times per day.
"sudo su" = 7 keystrokes
"su" = 2
delta = 5
5 * 37 = 185 extra keystrokes per day.....At my age, that's a lot of effort.....
 
Old 09-29-2008, 12:07 PM   #7
jgallo
Member
 
Registered: Sep 2008
Posts: 39

Rep: Reputation: 15
'sudo su' FTW

Linux Archive

Last edited by jgallo; 10-12-2008 at 01:55 AM.
 
Old 09-30-2008, 07:57 AM   #8
tur third
Member
 
Registered: Jun 2005
Location: Surrey, UK
Distribution: Ubuntu 10.04, 10.10
Posts: 187

Rep: Reputation: 24
This confused me when I switched to Ubuntu, and I enabled 'su', then never used it again.

I haven't found any reason to use 'su'. All the documentation for configuring Ubuntu will give you instructions using 'sudo' - my suggestion is to go with the flow and stick to 'sudo'.

Your user ID has the right to run commands as su using sudo - simple as that. Therefore no need to login as 'su'.
 
  


Reply



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
Unable to use 'su' lali.p Slackware 5 05-06-2007 07:27 AM
'login' doesn't work, 'su' doesn't work, can't login as root antiqui.populi Linux - Security 3 10-20-2006 04:32 PM
What's the difference between 'su' and 'su -' rickh Linux - Newbie 2 09-10-2005 12:48 PM
'su' will not work under KDE digx Linux - General 5 02-13-2005 06:01 PM
did a iptables -L as 'su' and got this ..... purpleburple Linux - Security 1 07-27-2002 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration