LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2011, 04:34 AM   #1
hitmen
Member
 
Registered: Jun 2011
Distribution: Kubuntu 10.04
Posts: 158

Rep: Reputation: Disabled
What is the default password for su


I went to my bash and typed su.
I got an authentication failure when I typed in my password. The same goes for my username.

What is the default password for su?
 
Old 06-16-2011, 04:38 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
It's not a default password, it's the root's password. You set it during the linux installation process. If running ubuntu, maybe you want to use sudo to get administrator privileges.
 
Old 06-16-2011, 04:45 AM   #3
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
simily giving "su" or "su -" will prompt for root password.
"su <user name>" - this will prompt for user's password. if the password is correct login to the user without taking the .profile* values of the user.
"su - <username>" - this is just like the above one. But while switching to the user account, it will execute the .profile, .bash_profile accordingly.

"sudo su -" -- this will allow you to switch to root, if you are authorized to do sudo to root. This works fine in Ubuntu as colucix mentioned.
 
Old 06-16-2011, 04:51 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Or more simply
Code:
sudo -i
Detailed info here: https://help.ubuntu.com/community/RootSudo
 
Old 06-16-2011, 08:20 AM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
You need root's password for su.

Ubuntu sets it to random characters to prevent you from logging in as root. This is because some users might get annoyed with having to type a password every time they do administration tasks, and decide to log into their desktop as root, which is a VERY bad idea.

If you want to be able to use su or log in as root (again, logging into your desktop as root is a bad idea and never necessary), then there is a way to set root's password to one you know. Enter this command, and follow the prompts:

Code:
sudo passwd
Now you can use su.
 
  


Reply


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
Default user name and password cyrix_j Linux - General 6 06-13-2010 10:27 AM
Default password? jcafaro10 Linux - Networking 2 04-10-2009 07:34 PM
default root password tuxmanfromindia Ubuntu 4 10-12-2005 01:52 PM
default password tvsskumar Linux - General 2 09-21-2004 08:48 PM
Default password or login lesthanjakejohn Red Hat 1 02-23-2004 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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