LinuxQuestions.org
Visit Jeremy's Blog.
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-01-2009, 04:33 PM   #1
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Rep: Reputation: 0
Can't Log in other than Root


Hello,

This is a really silly question, but I forgot my username and password. All I remember is the root password.

How do I get out of root and login as another user?

I do apologize if this is a really remedial question.

I just realized, this is what is says I am logged in as:
[root@localhost ~]

Is that the same as root? I know....you can't believe I am asking that! I am new, what can I say!

Last edited by audrea; 12-01-2009 at 04:56 PM.
 
Old 12-01-2009, 04:36 PM   #2
JK3mp
Member
 
Registered: May 2009
Distribution: Slackware 13.0
Posts: 30

Rep: Reputation: 15
From root you should be able to change other users passwd =P. Should be in System Settings somewhere if you have a GUI Desktop, or simply use the "passwd username" command at terminal without quotes and with username replaced by name on acct of your other acct. If you don't know it look it up in the etc/passwd file.use "cat /etc/passwd"

Last edited by JK3mp; 12-01-2009 at 04:39 PM.
 
1 members found this post helpful.
Old 12-01-2009, 04:51 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Take a look at file /etc/passwd. Down at the bottom, look for the line with you name/your home directory/your default shell. The name on the left end of that line is your user name.

Then, to reset your user password, follow instructions here.
 
1 members found this post helpful.
Old 12-01-2009, 05:00 PM   #4
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I am logged in as: [root@localhost ~]#

When I type /etc/passwd it says "Permission denied" Do you know what I am doing wrong?
 
Old 12-01-2009, 05:04 PM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
try
Code:
cat /etc/passwd
 
1 members found this post helpful.
Old 12-01-2009, 05:07 PM   #6
JK3mp
Member
 
Registered: May 2009
Distribution: Slackware 13.0
Posts: 30

Rep: Reputation: 15
Yes try cat /etc/passwd if that doesn't work, something is horribly wrong.

Last edited by JK3mp; 12-01-2009 at 05:09 PM.
 
Old 12-01-2009, 05:07 PM   #7
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Wow, that worked! Now when I see my name, will it show my password? Or now I can type /etc/passwd?

Thank you so much!
 
Old 12-01-2009, 05:11 PM   #8
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Never mind I figured it out, I needed to switch users:

su - newusername


Does that seem correct?
 
Old 12-01-2009, 05:14 PM   #9
Rayskovsky
LQ Newbie
 
Registered: Jan 2009
Location: Canada
Distribution: Ubuntu Desktop / Ubuntu server / CentOS
Posts: 4

Rep: Reputation: 0
as root, issue

passwd your_username
 
1 members found this post helpful.
Old 12-01-2009, 05:15 PM   #10
manwichmakesameal
Member
 
Registered: Aug 2006
Distribution: Slackware
Posts: 802

Rep: Reputation: 101Reputation: 101
Once you su to the other user, run passwd to change the password.
 
1 members found this post helpful.
Old 12-01-2009, 05:21 PM   #11
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
My problem now is that for the username I have changed to, I can't remember the old password.

It asks me for (current) UNIX password:

I type what I thought it was and I get the error:
Authentication token manipulation error

Am I making this more difficult than it is?

Thank you!
 
Old 12-01-2009, 05:23 PM   #12
JK3mp
Member
 
Registered: May 2009
Distribution: Slackware 13.0
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by audrea View Post
My problem now is that for the username I have changed to, I can't remember the old password.

It asks me for (current) UNIX password:

I type what I thought it was and I get the error:
Authentication token manipulation error

Am I making this more difficult than it is?

Thank you!
They already said. From command line while root use "passwd username". If same error come's, be sure theres an entry for it in /etc/shadow

Last edited by JK3mp; 12-01-2009 at 05:25 PM.
 
1 members found this post helpful.
Old 12-01-2009, 05:28 PM   #13
audrea
LQ Newbie
 
Registered: Sep 2009
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you!

I got it! All changed I know it is annoying helping a beginner...it is just a little confusing. You are dealing with someone who is just starting...on page 5 maybe
 
Old 12-01-2009, 05:29 PM   #14
JK3mp
Member
 
Registered: May 2009
Distribution: Slackware 13.0
Posts: 30

Rep: Reputation: 15
Quote:
Originally Posted by audrea View Post
Thank you!

I got it! All changed I know it is annoying helping a beginner...it is just a little confusing. You are dealing with someone who is just starting...on page 5 maybe
Glad to hear it. Thats fine, anytime. And welcome to Linux world =).
 
Old 12-01-2009, 05:45 PM   #15
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
You may find it worthwhile bookmarking the following:
http://linux.oneandoneis2.org/LNW.htm
http://rute.2038bug.com/index.html.gz

Also
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/

Please add your distro name & version to your profile, for future ref, as its one of the first things people ask when you raise a qn.

Lastly, Welcome to LQ
 
  


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
NFS Root setup - can't log in as root after CHMOD ? gallwapa Linux - General 1 04-02-2007 05:31 AM
Cant only log in as root after user log-in. ADJenkins Linux - General 2 11-17-2004 05:18 PM
Log Out root Then Log In As Other User xtremcoder Linux - General 4 10-05-2004 12:01 AM
only root can log in to X spiderworm Linux - Software 2 11-11-2003 11:38 AM
Log on as Root, or switch to Root, in MDK 9.1 - KDE 3.1.0 snorky Mandriva 3 09-01-2003 01:07 PM


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