Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.