?
Solved

Linux Suse root password missing

Posted on 2009-07-15
4
Medium Priority
?
505 Views
Last Modified: 2013-12-05
Linux server with root password missing. What steps to add new password?
0
Comment
Question by:wiseman301
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24862417
Login as root:


Type: passwd

Enter the new password twice.

0
 
LVL 30

Accepted Solution

by:
Kerem ERSOY earned 375 total points
ID: 24862455
If it is SuSe do you have a user with sudo ability?

Then execute this command:

sudo su -

enter your password when asked. then you are root execute the passwd command.

or  you can use

sudo passwd root

If you can not use sudo reboot your system during the initial Grub or LILO. Enter in rescue mode then you're root
mount your volume to /mnt and edit /mnt/etc edit passwd file and remove root password beteen :: signs.
Reboot assign a new password
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24862485
Sorry, I was confused, and thought the password was "missing" as in clear, not unknown. My answer assumes the former. If not, follow KeremE's directions.
0
 

Author Closing Comment

by:wiseman301
ID: 31603888
I found the root password in an old file. thanks for your help.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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 Month9 days, left to enroll

765 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