LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-20-2017, 01:18 AM   #16
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 166

Rep: Reputation: 31

Separate the 2 problems. First solve the problem with user login, then you can work on the sudo problem.

From a root terminal try to enter
Code:
su username
Of course,replace username with your user name. Does it work? If not, post the error it returns alone with the contents of /var/log/auth.log file
Code:
cat /var/log/auth.log
 
Old 05-20-2017, 02:17 AM   #17
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
tl;dr
sorry.

but:
Quote:
Originally Posted by Yuhan View Post
No, I logged in as root so that I could get online.
that sentence in itself is so wrong! example

all in all, i'm getting the distinct impression that your system is broken in several ways, and
  1. a good linux tutorial for newbs
  2. a reinstall
might be the best course of action.
 
Old 05-20-2017, 10:42 AM   #18
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Ondoho--I'm doing my best to solve a problem here. I'm appreciative of the help I have received. I'm not a techie but I'm doing my best. The problem is simply to get into my system using my non-root password. That's all I set out to solve. If I've not used the correct nomenclature in describing the situation, I'm sorry for that.
 
Old 05-20-2017, 11:37 AM   #19
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
it's not about nomenclature, it's about "being root to get online". while the creation of a connection requires superuser privileges, you should never be root when you're using the internet. too dangerous.
 
Old 05-20-2017, 11:46 AM   #20
UbuntuconLeche
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
Maybe you could post
Code:
cat /etc/apt/sources.list
If your system really is broken it could be because there are repositories added that are not supposed to be there.
 
Old 05-20-2017, 01:29 PM   #21
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Here is reply from 'su username'

root@yama:~# su yuhan
yuhan@yama:/root$
 
Old 05-20-2017, 01:37 PM   #22
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
If you run the su command again i.e.
yuhan@yama:/root$ su yuhan

You should be prompted for yuhan's password. If you enter the password is it accepted. Passwords entered at the prompt are not echoed so you are typing in the blind.

Last edited by michaelk; 05-20-2017 at 01:39 PM.
 
Old 05-20-2017, 01:50 PM   #23
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Sorry...that was a screw up!

Last edited by Yuhan; 05-20-2017 at 01:52 PM.
 
Old 05-20-2017, 01:53 PM   #24
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
You did not follow my instructions or posted the wrong information.
Code:
root@yama:~# su yuhan
yuhan@yama:/root$ su yuhan
Were you prompted for a password?
 
Old 05-20-2017, 01:55 PM   #25
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Got this:

Password:
su: Authentication failure
 
Old 05-20-2017, 02:01 PM   #26
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,608

Rep: Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167Reputation: 4167
Ok, what happens when you try to change the password.
Quote:
root@yama:~# passwd yuhan
 
Old 05-20-2017, 02:04 PM   #27
redfox2807
Member
 
Registered: Jul 2012
Distribution: Debian testing/stable, Gentoo, CentOS 7, Sailfish OS, Android
Posts: 166

Rep: Reputation: 31
Quote:
Originally Posted by Yuhan View Post
Here is reply from 'su username'

root@yama:~# su yuhan
yuhan@yama:/root$
So you could login as yuhan successfully. Then the issue is in the password itself it seems. From a root terminal try to set a simple password containing only digits using
Code:
passwd yuhan
Something like 123. Don't use numpad. Then try to login as yuhan again. Again, if you fail to login then post the contents of /var/log/auth.log
 
Old 05-20-2017, 04:23 PM   #28
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Quote:
Originally Posted by Yuhan View Post
Got this:

Password:
su: Authentication failure
This is weird. I'm thinking about two possibilities: maybe your system is set up in such a way that each user (root and your regular user) uses a different locale, hence the keys you input are different for each user, even if the keys you're pressing on the keyboard are the same. After logging in on the CLI as your regular user (by executing su yuhan), try to write your user password as if it was any command (no need to press 'enter') to see if the keys you input match what is displayed on the screen.

The other possibility is, your user might have some privileges disabled, or there might be some permissions issue with some files.

Last edited by Hungry ghost; 05-20-2017 at 04:24 PM.
 
Old 05-20-2017, 09:28 PM   #29
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Yes, weird...that's the word for it! I tried typing in my password as you suggested and, yes, the keys that I input matched what was on the screen. No problem there at all. As far as privileges disabled, I've no idea what can be done about that. What does the command ALL=(ALL)ALL mean? Does it have any bearing at all on this situation? On a post from another forum (Ubuntu) someone was describing a similar problem and a respondant suggested typing this in a terminal.
 
Old 05-25-2017, 06:28 PM   #30
Yuhan
Member
 
Registered: Oct 2010
Posts: 374

Original Poster
Rep: Reputation: 3
Well, this is embarrassing...and a little humbling. The solution to this problem was much simpler than I ever imagined. I figured it out entirely by accident! The problem was that I using an uppercase "Y" in my username and it was in fact a lowercase "y"! Once I had that right--voila! I had no problem. Terribly sorry for all the inconvenience. It's easy to forget that Linux is case sensitive. Thank you one and all for your help. Just sorry this proved to be such a dumb solution! My bad. Thanks again.
 
  


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:56 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