nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

how to reset root and user passwords - new install

This is a discussion on how to reset root and user passwords - new install within the Linux software forums, part of the Linux Getting Started category; Hello, I have recently installed suse 10.2 on a clean hard drive. The installer skipped setting the root password and ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-03-2007, 08:22 PM
Junior Member
User
 
Join Date: Jul 2007
My distro: suse
Posts: 2
Rep Power: 0
forlornhope is on a distinguished road
Default how to reset root and user passwords - new install

Hello,
I have recently installed suse 10.2 on a clean hard drive. The installer skipped setting the root password and the user login and password. I can log in using rescue mode and the grub installer will boot the system to the user login. I have also booted the box using puppy linux and have viewed the /etc/shadow file, but I am not sure if I can set the root password using puppy linux. I need detailed instructions on how to get the installation up and running. I have tried to reinstall, however the yast installer gives an error before the second stage boot and I have to use the update option to finish installation. I ran memtest and found one bad ram module that I removed.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-04-2007, 10:48 PM
Junior Member
User
 
Join Date: Jul 2007
My distro: suse
Posts: 2
Rep Power: 0
forlornhope is on a distinguished road
Default

I have been able to set the root password and make a user account and password, but have not been able to start kde. I used puppy to look into /etc/shadow and saw that there was nothing for root in the root line. I rebooted without the puppy cd and at the grub screen for login options typed: init=/bin/bash. This allowed system to boot as root without root password. I then set a new root password, rebooted and logged in as the new root and made a user account, but I mistakenly did not give it a home directory so its home is /. I did not know how to change that fact, so I made a new account with /home, however neither one will start kde. I typed kde at the command line and got: can not contact kdeinit
and
trying to create local folder permission denied (this is for the user with /.)
cannot create directory /home..... permission denied
the user at /home said it could not start kdeinit.
I feel that I am very close. Is there a way to fix kde?
Reply With Quote
  #3 (permalink)  
Old 07-05-2007, 01:51 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

Hi,

You can setup /root directory in /etc/passwd as follows:
Code:
root:x:0:0:root:/root:/bin/bash
Also boot from CD and create a user account for normal usage. Don't use root for login into KDE.
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
passwd reset pansarevai CentOS / RHEL / Fedora 4 03-24-2008 10:39 PM
Add normal user / FTP user usein NORMAL user(non-root) anilvrathod Shell scripting 0 12-07-2007 07:04 PM
Block Single User Login using root password sayan4u86 Networking, Firewalls and Security 0 09-28-2007 07:47 AM
Prevent root user from being able to log in via SSH service' swillet HP-UX 2 07-17-2007 08:33 PM
Linux delete mail for root or any other user from a shell prompt raj Getting started tutorials 0 05-05-2007 02:36 AM


All times are GMT +5.5. The time now is 12:31 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36