LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-16-2008, 02:33 PM   #1
mdguy21061
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
cannot "sudo apt-get uptate" or "sudo" anything! plz help


I type in comand "sudo apt-get update" or any other sudo command it prompts for a password. (assuming root password) but, it does not let me enter anypassword, letters or numbers. not anything. just lets me hit enter w/o letting me type in the pass. and, i know I cannot login to root becuase I use GUI/Debian. plz help!


http://img135.imageshack.us/img135/1...shotkx5.th.png


heres a link to a screenshot:-------/


thankyou plz help.

http://img135.imageshack.us/img135/1...eenshotkx5.png
<b><noob></b>


p.s. I tried to edit the sudoers file in etc/sudoers with visudo and it will not work, also tried adding myself to the sudoers file via console and that dont work as well.
 
Old 03-16-2008, 02:56 PM   #2
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
To edit sudoers file, you must be logged in as root. The sudo documentation is pretty good - so you might want to check that again.

Just saying "it doesn't work" really does not give us much to go on.

Once you're in the sudoers list, when sudo asks for a password, it wants YOUR password, not root.
 
Old 03-16-2008, 03:08 PM   #3
mdguy21061
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pentode View Post
To edit sudoers file, you must be logged in as root. The sudo documentation is pretty good - so you might want to check that again.

Just saying "it doesn't work" really does not give us much to go on.

Once you're in the sudoers list, when sudo asks for a password, it wants YOUR password, not root.


I know what you mean. I annot login as root. i have read documention stating not to it is a security risk in debian w/gui. When I enter any "sudo" command ex: "sudo apt-get update" it immediatly prompts for a password and it will not let me enter anything at all as a password. i know what password it wants. but it just wont let me input it.

this is what it says:
"laze@c-68-49-202-172:~$ sudo apt-get update
Password:
"

when i just try "apt-get update" it will say:
"laze@c-68-49-202-172:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied)
E: Unable to lock the list directory"
 
Old 03-16-2008, 03:11 PM   #4
DragonSlayer48DX
Registered User
 
Registered: Dec 2006
Posts: 1,454
Blog Entries: 1

Rep: Reputation: 74
If you're referring to the fact that the cursor doesn't move or otherwise 'show' that you've typed anything, type your password anyway and hit Enter. That's how it works. Kinda took me by surprise the first time I used the terminal.

Cheers
 
Old 03-16-2008, 03:52 PM   #5
mdguy21061
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dragonslayer48dx View Post
If you're referring to the fact that the cursor doesn't move or otherwise 'show' that you've typed anything, type your password anyway and hit Enter. That's how it works. Kinda took me by surprise the first time I used the terminal.

Cheers
The most confusing question with the simplist of answers.thanks man.

BUT I HAVE ANOTHER QUESTION.

how do I add myself to the sudoers list?
it now says"
laze@c-68-49-202-172:~$ "sudo apt-get update
Password:
laze is not in the sudoers file. This incident will be reported."


how do I put myself on the sudoers list?
 
Old 03-16-2008, 04:43 PM   #6
Ricio
Member
 
Registered: Sep 2003
Location: Colombia
Distribution: Debian
Posts: 220

Rep: Reputation: 30
theres two ways to get yourself in the sudoers file... one is visudo, and the other is editing the /etc/sudoers file and adding our username there
 
Old 03-17-2008, 02:25 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,311

Rep: Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040Reputation: 2040
sudo visudo

or

sudo su -
visudo
 
Old 04-14-2008, 12:59 AM   #8
cafeinoz
LQ Newbie
 
Registered: Apr 2008
Posts: 1

Rep: Reputation: 0
I use ubuntu and it does the same thing. I usually just ignore it and enter the currant users password and press enter.
 
  


Reply

Tags
sudoers


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
Difference between "sudo su" and "sudo su -"? Rush_898 Linux - Newbie 1 10-17-2007 03:02 PM
"sudo -u user ssh server" fails to connect oudoubah Linux - Security 3 06-21-2007 07:45 AM
sudo apt-get install acroread returns "Couldn't find package acroread" swiadek Ubuntu 3 02-13-2006 11:52 AM
how do I get around the "submit passwd" prompt in ubuntu even if I use "sudo"? t3gah Linux - Distributions 1 02-22-2005 05:42 PM
normal user want to perform "init 6" by using " sudo acbenny Linux - General 3 08-08-2004 08:41 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration