LinuxAnswers - the LQ Linux tutorial section.
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, 02: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, 02:19 PM   #2
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
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, 02:24 PM   #3
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,274
Blog Entries: 10

Rep: Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847Reputation: 847
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, 03:28 PM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

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

All times are GMT -5. The time now is 10:33 PM.

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