LinuxQuestions.org
Register a domain and help support LQ
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 05-06-2014, 02:06 PM   #16
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649

http://www.noobslab.com/2012/02/rese...ickly.html?m=1
 
Old 05-06-2014, 02:12 PM   #17
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Does Ubuntu present you with a choice of usernames to select when you log in? For example KDE presents you with a username (typically the same as the one used the last time someone logged into the system) and a space for filling in the password. Is this the case with Ubuntu? If there is a username that's visible what is it? unk? something else? If it's not unk, can you change it to what you want, namely unk?
Need need to apologise. That's what LQ is here for.
jdk
 
Old 05-06-2014, 03:48 PM   #18
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Only comes up with unk which my password does not work for.
 
Old 05-06-2014, 04:05 PM   #19
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
I confess to being baffled. When you type in the password for the user unk at login time, then the password works. Thereafter the very same password for the very same user (unk) does not work. Maybe sudo is not configured correctly.
What's the output for this command?:
Code:
ls -l /etc/sudoers
Normally I would then ask to see the content of the sudoers file but you may need root privileges to do that as in
Code:
sudo cat /etc/sudoers
but you don't seem to be able to use sudo because it won't accept your password.
Can you switch to a tty (full screen terminal non-gui mode) by typing ctl-alt-F1 keys (holding them all down then releasing them). If you can then will your unk password satisfy sudo in this tty mode?
jdk
 
Old 05-06-2014, 04:38 PM   #20
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
Inching along.
In tty mode it's my login that I have correct, password no good.
At initial ubuntu start screen it asks for pass phrase which is the same as the login on TTY
When I tried to enter: 1s -1 /etc/sudoers it comes back with 1s: command not found
Hope this clears what I have correct, pass phrase which gets me into ubuntu, same accepted as TTY login, password n/g
 
Old 05-06-2014, 06:30 PM   #21
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,871

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
Quote:
When I tried to enter: 1s -1 /etc/sudoers it comes back with 1s: command not found
As it should. If you copy and paste your command above and then copy and paste the command suggested by jdkaye above and compare them you will see that he used a lower case letter l in the command while you used the number one.

Code:
ls -l /etc/sudoers
 
Old 05-06-2014, 09:33 PM   #22
AlexBB
Member
 
Registered: Mar 2014
Posts: 435

Rep: Reputation: Disabled
My point was and is that you, experienced members, post helpful stuff (when answering fresh members' questions) but most of the time do it like you are addressing someone who has been in Linux at least a year. You do not understand the total vacuum a newcomer has. I went through this stage myself. That pound sign is a case in point. Think about it. I would make a color distinction, I would have changed the command color to red and left the pound sign unchanged and written: "the part in red color is the Linux command, the pound sign is a command prompt."

# whoami

That would have eliminated the need to write an explanation:
Quote:
No, you need to type "whoami" (only what's between " "). The "#" sign is a prompt which indicates you're logged in as root. So giving the command whoami following the # prompt will return root
This is how it looks:
 
Old 05-07-2014, 10:43 AM   #23
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
The reason I used a '1' is I looked at the message he typed above the the code box and the lower case 'l' looked nothing like the 'l' in the code box.
Was also using my work computer to read all messages, I will try to get on line access for my netbook so I can copy & paste.
 
Old 05-07-2014, 12:14 PM   #24
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
-r--r----- 1 root root 745 Feb 10 11:20 /etc/sudoers
this is return line to the proper input of: ls -l /etc/sudoers
 
Old 05-07-2014, 01:44 PM   #25
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
OK, that is completely normal. So the problem is not there. when you are in the tty, can you execute this command?
Code:
sudo cat /etc/sudoers
and when you're logged into the tty what user+prompt is shown? In my case (if I log in as root) it's this:
Quote:
root@AttilaII:~root
Translation: root=the user logged into the tty; AttilaII is the name of the machine; ~ is the home directory of the logged in user (in this case root); root is the username logged into the tty.
FYI - the home directory of the user root is /root
Now tell me what you see.
jdk

Last edited by jdkaye; 05-07-2014 at 01:46 PM.
 
Old 05-07-2014, 01:52 PM   #26
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
I copied the whole thing, online now, password for unk is wrong or corrupt

unk@unk-1005HAG:~$ sudo cat /etc/sudoers
[sudo] password for unk:
Sorry, try again.
[sudo] password for unk:
 
Old 05-07-2014, 03:47 PM   #27
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Good work, unk. Now when you first boot up do you boot up to a gui desktop or to the tty? I guess that's to a gui, correct? If so when you switch to the tty you should get something like this:
Code:
unk-1005HAG login:
correct?
Then you type in your username (unk) correct?
Then you you see this
Code:
Password: _
with a blinking underscore symbol waiting for you to enter unk's password, correct?
So you enter your (unk's) password and it is happy, correct?
Now you enter your sudo command and when prompted type in the very same password that you used in the first place, correct?
And the system rejects this password, correct?
If all this is how it happens, your sudo configuration appears to be totally buggered. If this is the case then I'd suggest you wait for an Ubuntu user to help you out.
jdk

Last edited by jdkaye; 05-07-2014 at 03:49 PM.
 
Old 05-07-2014, 03:49 PM   #28
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Also have you tried
http://www.noobslab.com/2012/02/rese...ickly.html?m=1
I would just enable root & create a new user.

Last edited by EDDY1; 05-07-2014 at 04:00 PM.
 
Old 05-07-2014, 04:15 PM   #29
unktv
LQ Newbie
 
Registered: May 2014
Posts: 17

Original Poster
Rep: Reputation: Disabled
It appears my login is correct, I assume this is what I typed into the startup gui screen at the bottom.
When I try the password in the TTY it says login incorrect.
Either I wrote the password down wrong or the file is corrupted
Somewhere in this thread someone sent a link on how to reset the password, seems like this might be the right move.
Do you agree?
 
Old 05-07-2014, 04:28 PM   #30
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
The link above allows you to go into recovery mode to reset password, create new user or enable root 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
Ubuntu 10.04LTS to 12.04LTS, Upgrade or install? Soadyheid Ubuntu 14 07-21-2014 11:47 AM
.bin file install failed on Ubuntu 10.04LTS but worked on Ubuntu 11.10 wh33t Linux - Software 8 01-18-2012 02:51 PM
Cant install ubuntu 8.04LTS on my server. forcevision Linux - Server 6 05-26-2009 04:33 PM
update install applics on Ubuntu 8.04LTS without Internet conn. Ye Myint Linux - Newbie 4 10-29-2008 08:05 AM


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