LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-21-2011, 02:01 PM   #1
greed109
Member
 
Registered: Nov 2010
Posts: 34

Rep: Reputation: 0
sudo su: wrong password try again


Hello.

Running Debian squeeze. The problem is that when I am in terminal using this command: sudo -i; always receiving a message: " Sorry, try again".
When in terminal trying: sudo apt-get update, message printed: Sorry, try again.
What am I doing wrong and how do I fix it?


Thank you!

Last edited by greed109; 12-21-2011 at 03:08 PM.
 
Old 12-21-2011, 02:11 PM   #2
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Hi there!

First of all, who told you to use "sudo su"? That's kind of a weird command, I don't use it personally.

If you want a root shell (looks to me like what you're trying to do) then either type su and enter your root password, or sudo -i and type your user password. (Assuming that "sudo" is installed and correctly configured.)
 
Old 12-21-2011, 02:16 PM   #3
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
What I am doing is trying to install program under terminal. SU command lets me in, but if im trying to continue with installation it tells me again, you have to be root blablabla. sudo -i, same problem, Sorry,try again.
 
Old 12-21-2011, 02:26 PM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
What is the name of "program" and where did you get it?
 
Old 12-21-2011, 02:36 PM   #5
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
Hey, thank you for your help. I got it of the Internet, some torrent web site, and i know it is compatible with my system. Any ideas on what could be the problem?
 
Old 12-21-2011, 02:49 PM   #6
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Quote:
Originally Posted by greed109 View Post
Hey, thank you for your help. I got it of the Internet, some torrent web site, and i know it is compatible with my system. Any ideas on what could be the problem?
No, I am not going to help you with secret mystery software from some torrent site, sorry.

Supported applications are easy to install from the trustworthy Debian Repositories with a few clicks of the mouse or terminal commands. I recommend you read the Debian Reference Guide: http://www.debian.org/doc/user-manuals#quick-reference with particular attention to Chapter 2: Debian package management
 
Old 12-21-2011, 03:07 PM   #7
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
snowpine, thank you for your attempt to help me. I dont see anything wrong with using torrents, when even Linux distros are downloaded that way. Lets leave what I am trying to install aside and move with this problem. When in terminal trying: sudo apt-get update, message printed: Sorry, try again.

There is a problem with authentication.
Thank you in advance.

Last edited by greed109; 12-21-2011 at 03:12 PM.
 
Old 12-21-2011, 03:12 PM   #8
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Type:

Code:
su
Press Enter

Type your root password (it will not display on the screen)

Press Enter

Type:

Code:
apt-get update
Press Enter

If that doesn't work then please copy & paste the output using CODE tags for legibility.

When you are done working as root type:

Code:
exit
to return to your normal user privileges.

See here for help configuring sudo: http://wiki.debian.org/sudo

Last edited by snowpine; 12-21-2011 at 03:14 PM.
 
Old 12-21-2011, 03:15 PM   #9
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
ok, that worked. But, why then i cannot do the other way around, like i said: sudo apt-get update?
 
Old 12-21-2011, 03:18 PM   #10
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Probably because you have not properly configured sudo. The link in my post above will help you. The most common mistake would be not adding your user to the sudo group.
 
Old 12-21-2011, 03:19 PM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
For sudo you are using the users password, right?

Kind regards
 
Old 12-21-2011, 03:22 PM   #12
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
snowpine, thank you, I am checking it right now. repo, when sudo apt-get update, using root password. If I am entering user password get this message: username is not in the sudoers file. This incident will be reported.
 
Old 12-21-2011, 03:31 PM   #13
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
Quote:
Originally Posted by greed109 View Post
snowpine, thank you, I am checking it right now. repo, when sudo apt-get update, using root password. If I am entering user password get this message: username is not in the sudoers file. This incident will be reported.
As suspected, you have not properly configured sudo for your user.
Since you have a working solution (post #8) I will let you read the sudo documentation on your own time. Good luck!
 
1 members found this post helpful.
Old 12-21-2011, 04:00 PM   #14
greed109
Member
 
Registered: Nov 2010
Posts: 34

Original Poster
Rep: Reputation: 0
Thank you, ALL, fixed. In terminal sudo -c visudo , and from there under root name desired user must be added copying all the specs from root.
Save
Logout
Login

Thank you, snowpine.
Going to stick to this forum
 
  


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
sudo password not same as root password - ubuntu 11.04. hence can't access partitions daudiam Linux - Newbie 1 09-03-2011 12:02 PM
my sudo password is not the root password newbiesforever Linux - General 7 01-02-2010 10:59 PM
sudo loads wrong user environment wilibird Linux - Software 6 12-31-2009 01:54 PM
scp needs three times password in wrong password case!!! JATA01 Programming 6 12-01-2008 06:28 AM
Using sudo, sytax error with visudo...what am I doing wrong? Baix Linux - General 4 02-08-2005 04:54 PM


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