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 08-04-2009, 01:07 PM   #1
giraf
Member
 
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
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

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
repo@cannabis:~$
 
Old 08-04-2009, 01:24 PM   #3
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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.)
 
  


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
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

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

All times are GMT -5. The time now is 12:25 PM.

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