Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SUSE 9.0 user login failed

Posted on 2004-08-04
3
Medium Priority
?
428 Views
Last Modified: 2013-12-15
I am completely new at linux and loaded VMware, then SuSE 9.0 PRO yesterday for a UNIX class I am taking. Got some problems loading SUSE, but then everything looked fine... until I entered the user password. The system either told me there was not enough characters or too many, no matter how many I entered! If I entered 4 char. it asked me to enter at least 5. I entered 5, and the system said that it was too long and that it would truncate it to nil characters. Now, whatever I do, the login fails, when I enter the 5 characters originally selected, or nothing... Any idea how I can check the logins and circumvent this problem?
0
Comment
Question by:WebMuse
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 500 total points
ID: 11722614
You also setup a root password during setup. Use that to log into the system (user id: root, and the password that you specified). Once you are logged in, you can change your user password:

passwd <your user name>

Then, enter your password twice. So, if you want to change the password for the user "WebMuse", you would use this command:

passwd WebMuse

0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 11722627
If you cannot log in as root as well, boot from your SuSE installation CD and select the rescue mode. Do you still know which partition you used for your root partition (this is something like /dev/hda1). If you know that, mount the root partition (substitute the device name for your system):

mkdir /mnt
mount /dev/hda1 /mnt

cd /mnt
chroot /mnt

Then run the passwd command without a user name to set the root password. Once this is done, you can also set the user password. To return to your original login shell type:

exit

Now you can reboot and log in with either the root, or the user password.
0
 

Author Comment

by:WebMuse
ID: 11723030
Well, the biggest problems have the simplest solutions sometimes! Loging as the root allowed me to, indeed, change the password of the user! Thank you so much for your input. It did make a difference as had a block and I could not think anymore!
All the best to you!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month5 days, 23 hours left to enroll

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question