LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-08-2002, 07:11 PM   #1
nerfherder64
LQ Newbie
 
Registered: Oct 2002
Location: Fort Wayne, Indiana USA
Distribution: Redhat 8.0
Posts: 9

Rep: Reputation: 0
passwords in Redhat 8.0


I couldn't get into Postgresql to save my life (though it swears it's running), so I used kuser to change the postgres user's password. Upon exiting, it apparently screwed something up, because my root password is suddenly not working, and the new postgres password doesn't work either.

First of all, what do I do about losing the root password. Secondly, how do I change another user (i.e. the postgres user) password from a terminal. It was while searching Google to find out how that I found out about kuser and screwed everything up.

Help! Thanks in advance.

p.s. I'm not completely inept. I have managed to recompile the kernel with NTFS support and installed nVidia drivers complete with TwinView.
 
Old 10-08-2002, 10:01 PM   #2
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
kuser works for me the whole time.

passwd username

Lost root passwd:
boot to cd1
linux=rescue
chroot /dev/hda#
cp /etc/shadow /etc/shadow.bak
vi /etc/shadow
remove root passwd between : and :
reboot
 
Old 10-08-2002, 10:41 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
I'm not sure, but I THINK that I read somewhere that passwords are saved in /etc/passwd in redhat 8.0.
 
Old 10-08-2002, 11:18 PM   #4
jetblackz
Member
 
Registered: Mar 2002
Location: Debian Galaxy
Distribution: Debian
Posts: 711

Rep: Reputation: 30
Ah I always thougth eveybody was on Slack. Silly me. Cut me some slack, will ya?

boot
type "linux single"
passwd
reboot
 
Old 10-09-2002, 06:41 AM   #5
nerfherder64
LQ Newbie
 
Registered: Oct 2002
Location: Fort Wayne, Indiana USA
Distribution: Redhat 8.0
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the help, everyone. I actually got it figured out before I returned here.

I have a Knoppix CD lying around, so I booted into it, mounted my Redhat filesystem as read-write, did a "sudo /mnt/hda3/etc/passwd" and fixed 'em.

Thanks!
 
  


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
Passwords terryshania Debian 1 10-23-2005 06:46 PM
Sync MySQL passwords with local account passwords? turbine216 Linux - Software 2 02-18-2005 03:15 AM
Completely uninstalling MySQL and its passwords passwords...how? I locked myself out! Baix Linux - Newbie 2 01-30-2005 04:10 PM
Passwords njschroe SUSE / openSUSE 1 12-13-2004 03:38 PM
Is there a way to sync Samba passwords with linux user passwords MarleyGPN Linux - Networking 2 09-09-2003 10:59 AM


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