LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-16-2010, 07:40 AM   #1
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Rep: Reputation: 15
su password question


I am trying to become su in the terminal window. It asks for my password, I give my usual password and I get "authentication failure". I thought that my log in password works for the su as well? Am I wrong?
 
Old 12-16-2010, 07:42 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
You are not correct. You are thinking of sudo, not su.

The su command requires the password of the account into which you are trying to switch. In the case of using su without specifying any account name the su utility will try to switch you to the root account so you would need to enter the password of the root account IF the root account has a password.

You appear to be using Ubuntu. In Ubuntu the default is that root does not have a password which makes using su to root impossible. That can be changed by giving a password to the root account.

Last edited by stress_junkie; 12-16-2010 at 07:46 AM.
 
Old 12-16-2010, 07:42 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
For su the root password is needed. But you can try
Code:
sudo su
This way you are asked for your password.
 
Old 12-16-2010, 07:50 AM   #4
rastavideo
Member
 
Registered: Jan 2003
Location: Texas
Distribution: Ubuntu
Posts: 66

Original Poster
Rep: Reputation: 15
that worked! thanks to all ...
 
  


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
Password Complexity Question(s)/Issue(s) jbottiger Linux - Security 5 04-14-2010 07:27 AM
/etc/group password question L1nuxn00b703 Solaris / OpenSolaris 2 01-08-2010 06:18 AM
Samba password question mchanea Linux - Networking 1 03-02-2004 06:11 AM
Root password question zer01 Linux - Newbie 7 07-30-2003 07:19 PM

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

All times are GMT -5. The time now is 03:35 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