Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 08-04-2009, 01:07 PM   #1
Registered: Dec 2005
Distribution: Debian
Posts: 135

Rep: Reputation: 15
SU don't work

Why su won't work (su: Authentication failure) ? however sudo work.
Old 08-04-2009, 01:19 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Are the permissions correct?

repo@cannabis:~$ ls -l /bin/su
-rwsr-xr-x 1 root root 27908 2009-05-22 17:03 /bin/su
Old 08-04-2009, 01:24 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,945
Blog Entries: 14

Rep: Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163Reputation: 1163
su requires you to use the target users password when prompted whereas sudo requires you to use YOUR password when prompted.

That is to say "sudo su - root" would require you to use YOUR password whereas simple "su - root" would require you to use root's password.

sudo is just a tool for granting users access to commands with root permission without actually giving them root. (Though giving someone sudo access to "su - root" means they can do anything they want after they become root including changing the root password.)

In our shop we don't give "sudo - root" but do give things like "sudo su - oracle" to DBAs so they can become the Oracle user to administer Databases. We don't give them access to Oracle direct login because there is no audit log. We don't allow the Oracle user to change its own password.
Old 08-04-2009, 02:28 PM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Are you on Ubuntu? If so,note that the root account is disabled by default. To enable it, enter "sudo passwd root". Once you do this, Ubuntu will behave normally---except that typical GUI admin utilities will still ask for your user password, and not the root password. (I assume this can be changed, but I've never looked into it.)


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
DNS lookup doesn't work, ping, firefox will not work properly lovemov Linux - Networking 2 04-23-2009 02:30 PM
can't make ethernet on laptop work, wireless and usb work fine ubuntu 8.10 rz1988 Linux - Newbie 10 01-13-2009 02:21 PM
Getting a touch screen to work, must get PCI serial device to work first sternocera Linux - Hardware 2 10-03-2008 06:23 AM
I have AD authentication work, how do i make SSH PAM work in RHEL4? epmd Red Hat 0 09-19-2007 06:04 PM
FALCONS EYE (nethack) FAILS ON STARTUP, use to work, wont work even after reinstall roorings Linux - Software 0 10-08-2003 10:39 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:28 AM.

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