LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-19-2017, 08:47 AM   #1
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Rep: Reputation: 3
Difficulty with password in Debian


Hi! I just got a new computer and it has Debian 8 installed. A friend helped me set up the system but I'm having trouble at log in getting the computer to recognize my password. I know I have the correct one (and the computer confirms that) but it says "the line is busy, try again later"! Nothing seems to work here. Any help would be greatly appreciated. This is my first time using Debian; I've used Xubuntu until now. I'm now working in "root" so I don't want to linger here too long. Any help will be appreciated greatly!
 
Old 05-19-2017, 09:14 AM   #2
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
When I try visudo from the root terminal I get this:visudo: /etc/sudoers busy, try again later. That is the problem. I want to get out of root as I know it's not good to linger here. But I can't gain access from my user name and password.
 
Old 05-19-2017, 09:43 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
You need to provide the exact commands you are trying to run. If you are using sudo i.e. sudo visudo then since you are already root it is not required.

Quote:
But I can't gain access from my user name and password.
Need details but I would assume that you are trying to run commands from your regular user by using sudo and it is not in the sudoers file. debian does not configure sudo by default for regular users. If that is what you are used to you can enable it but there is nothing wrong with using su. Many arguments about which is better.

https://www.howtogeek.com/111479/htg...etween-sudo-su
 
Old 05-19-2017, 09:57 AM   #4
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Thank you for that. But the problem is more basic: when I first try to log in (where you have "name" and "password" the system doesn't recognize my password. That is why I am currently operating from root. (But, yes, I am accustomed to using sudo as in "sudo apt-get..." etc.)
 
Old 05-19-2017, 10:30 AM   #5
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
While you are logged in as root, you can reset the password for your user. Assuming your username is "yuhan" the command looks like this:

Code:
passwd yuhan
Another thing to check is that you have selected the correct language on the login screen. Sometimes people think they are typing the correct password, but because the wrong language is selected, the keys aren't mapping to the correct symbols. An easy way to check this is to type your password in the Username field, so you can visually verify that you are typing it correctly (but make sure nobody is watching over your shoulder).
 
Old 05-19-2017, 11:20 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237Reputation: 5237
Quote:
Originally Posted by Yuhan View Post
I'm having trouble at log in getting the computer to recognize my password. I know I have the correct one (and the computer confirms that)
isn't there a contradiction?

Quote:
"the line is busy, try again later"!
fwiw, i have never, ever seen a message like that on a linux machine, in no context whatsoever.
 
Old 05-19-2017, 03:30 PM   #7
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Sorry about that...it wasn't an exact quotation. What I received when typing in "visudo" was the following: visudo: '/etc/sudoers busy, try again later.' But sudoers can't be "busy" because I'm the only one on this network.

The reason I say I know the password is there is because I have tried to change it, using the same password, and the computer acknowledges it is already the present password.

But back to my original point...How do I check out of root and still have the ability to get online when my ordinary user password isn't recognized? My user name isn't the problem, just getting the password to work. Thanks for your feedback!
 
Old 05-19-2017, 04:31 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
Are you typing
sudo visudo
or just
visudo

In the man page under diagnostics it states "Someone else is currently editing the sudoers file." Have you check to see if this is true?

Lets start from scratch... When the computer starts and the login window is displayed I assume you see your username but the password is not accepted? Normally, root login via the GUI is not enabled. Did your friend enable GUI root login or are you using the command line?
 
Old 05-19-2017, 05:54 PM   #9
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
No, I logged in as root so that I could get online. So in a terminal, already registered as root, I simply put in 'visudo.' No one could possibly be editing the sudoers file--this is a private computer. How else could someone other than me be editing it? And, yes, I used the command line to get on as root.

So let's say I log out as root and return to the main sign-in window which, as you say, has username and password. When I attempt to sign in and the password is then rejected...what should I do? Would you like me to attempt that? Thanks!
 
Old 05-19-2017, 08:23 PM   #10
snowday
Senior Member
 
Registered: Feb 2009
Posts: 4,667

Rep: Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409Reputation: 1409
A few more troubleshooting ideas you can try:

1. Reboot the computer. If another process has a "lock" on the sudoers file, then rebooting might reset the lock.

2. Switch to a "virtual console" by pressing Ctrl + Alt + one of the Fn keys. This should switch you out of graphical mode into a plain text login. Can you log in as your user in a virtual console?

https://wiki.debian.org/Console#How_...ss_the_Console

3. Create a new user (one way is to use the "adduser" terminal command). Can you log in as the new user?

https://wiki.debian.org/UserAccounts

Last edited by snowday; 05-19-2017 at 08:28 PM.
 
Old 05-19-2017, 08:31 PM   #11
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Does this make any sense? I went to a terminal in root and added
the word 'visudo.' I received this message:

# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in /etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:$

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification

^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


Does this provide any information about what the problem is? Thank you!
 
Old 05-19-2017, 08:47 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
Not really since I am still not sure what you were doing before. You have been stating that you already went to a terminal as root.

What you see is that visudo opened the sudoers file using the default text editor pico.

Last edited by michaelk; 05-19-2017 at 08:50 PM.
 
Old 05-19-2017, 08:47 PM   #13
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
That seems to be the default sudoers file without any modification. In any case, did you try to change your user's password as instructed in post #5?
 
Old 05-19-2017, 09:05 PM   #14
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Changed password as suggested and no difference at all. It came back "Incorrect Password." I'm not clear about what is being suggested in the previous post...
 
Old 05-19-2017, 09:14 PM   #15
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
I tried the virtual console. Same thing...came back 'Incorrect login."
 
  


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
[SOLVED] Difficulty upgrading Debian stable rng Debian 5 07-05-2017 11:22 PM
Change my root password in Debian Linux if I have the current password? panseluta Linux - Newbie 2 12-28-2008 02:02 AM
password difficulty dody1313 Solaris / OpenSolaris 3 07-15-2008 03:20 PM
How to change password difficulty requirement & expiriation linux-who? Linux - Security 2 04-09-2008 07:42 AM
Xine Difficulty - No Video (Debian) ImperiestroMary Linux - Software 1 02-04-2005 09:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:59 AM.

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