LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-31-2010, 03:05 AM   #1
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Rep: Reputation: 1
pls help me about this problem.


hi,
does anyone know how to fix this prob.
at first I'm working with my root terminal because it change from local host to -bash-3.2#, but thank god I already solve it.. but after that, I used to logout from my previous session, and when I come back in.. my username and password did not already recognize.. when i insert them, nothings happened.. I'm stock on log in menu. I try to insert other username and password but then it saids to be invalid, but when I'm inserting the real username and password, It's just like resetting all over again.

Last edited by marvinC; 08-31-2010 at 03:08 AM.
 
Old 08-31-2010, 03:13 AM   #2
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Need more specific details. You mean to tell me your PS1 environment variable was missing but got fixed?

If you deleted your home directory, you obviously cannot log in. NEVER RUN COMMANDS FROM AN UNTRUSTED SOURCE!!! If you see any commands you might think are dangerous to execute, please let me know. Here is a list of commands that can cause damage to your system. The command to delete your home directory (/home/<username>) is in there, if you accidentally ran it tough luck.
 
Old 08-31-2010, 03:19 AM   #3
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Original Poster
Rep: Reputation: 1
export PS1='\u@\h:\w>'

this is the command I used to solved my prob regarding to -barsh-3.2#. and now, that it's ok already.. I can't access my username and password to localhost
 
Old 08-31-2010, 03:28 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I am a bit confused about what problem you are experiencing.

You state that you had an issue with the PS1 prompt, but then state that you are unable to login with your user account.

Are you able to login as the root account?

If so, you can reset the password for your user account:
Code:
passwd username
entering your user name in place of username
 
Old 08-31-2010, 03:28 AM   #5
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Kenny_Strawn View Post
Need more specific details. You mean to tell me your PS1 environment variable was missing but got fixed?

If you deleted your home directory, you obviously cannot log in. NEVER RUN COMMANDS FROM AN UNTRUSTED SOURCE!!! If you see any commands you might think are dangerous to execute, please let me know. Here is a list of commands that can cause damage to your system. The command to delete your home directory (/home/<username>) is in there, if you accidentally ran it tough luck.




export PS1='\u@\h:\w>'

this is the command I used to solved my prob regarding to -barsh-3.2#. and now, that it's ok already.. I can't access my username and password to localhost
 
Old 08-31-2010, 03:32 AM   #6
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Disillusionist View Post
I am a bit confused about what problem you are experiencing.

You state that you had an issue with the PS1 prompt, but then state that you are unable to login with your user account.

Are you able to login as the root account?

If so, you can reset the password for your user account:
Code:
passwd username
entering your user name in place of username

yaa.. at first i do had an issue with PS1, but then I already solve it. and then, after that I used to logout.. but when I'm logging back in, I can't access already my account. yaa I'm using a root account.. but then also, there's no INVALID LOG IN indicating on my screen. It's just, when I insert my current UN and PW, nothings happens.
 
Old 08-31-2010, 03:34 AM   #7
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Read what I posted about possibly (albeit accidentally) deleting your home directory. THIS WILL PREVENT YOU FROM LOGGING IN!!! Try booting from your Live CD and running the following commands:

Code:
sudo fdisk -l
sudo mount -t ext4 /dev/LOCALDISKDEV /mnt #while /dev/LOCALDISKDEV is the device file (typically /dev/sda1) that your Linux operating system is installed on.
ls /mnt/home
Post the output of ls /mnt/home here. If it reads empty, that means you accidentally deleted your home directory.
 
Old 08-31-2010, 03:37 AM   #8
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Original Poster
Rep: Reputation: 1
this is the scene..

CentOS release 5.3 (Final)
Kernel 2.6.18-128.2.1.e15 on an i686

localhost login: root
password:

(after i enter my password, this statement below appear)

CentOS release 5.3 (Final)
Kernel 2.6.18-128.2.1.e15 on an i686

localhost login:
password:

(but when I insert other UN and PW that I know wrong, this will appear)


localhost login:
password:

LOG IN INCORRECT
 
Old 08-31-2010, 03:45 AM   #9
Kenny_Strawn
Senior Member
 
Registered: Feb 2010
Location: /usa/ca/orange_county/lake_forest
Distribution: ArchBang, Google Android 2.1 + Motoblur (on Motortola Flipside), Google Chrome OS (on Cr-48)
Posts: 1,791
Blog Entries: 62

Rep: Reputation: 56
Yikes, that's pretty serious. Like I said, boot from the CD and try to fix it from there. Please note that /root is the name of root's home directory. So, please post the output of sudo fdisk -l run from the CD.
 
Old 08-31-2010, 03:48 AM   #10
marvinC
LQ Newbie
 
Registered: Aug 2010
Location: www.twitter.com/b0koo15
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Kenny_Strawn View Post
Yikes, that's pretty serious. Like I said, boot from the CD and try to fix it from there. Please note that /root is the name of root's home directory. So, please post the output of sudo fdisk -l run from the CD.
ok I try it.. btw, thanks
 
  


Reply



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
Can't play .pls files in Rhythmbox, closes when I try to load .pls file lqv Linux - Software 2 01-07-2013 08:30 AM
pls u pls help me to install asterisk on a server in italy abdul rashid Linux - Newbie 2 02-17-2010 03:32 PM
problem with network help pls lebo123 Linux - Newbie 1 07-05-2007 09:19 AM
pls pls pls help me ! i'm tired with httpd config on fedora apache 2.0.48 AngelOfTheDamn Fedora 0 01-24-2004 05:12 PM
a few problem pls advise me jeppe Linux - Newbie 2 09-03-2003 02:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:23 PM.

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