Question

I lost my superuser password for Suse 9.1 How can I reset it?

Asked by: phishbone4

I can't find or remember my superuser(SU) password for my Linux Suse 9.1. Is there a way to reset the password?

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2006-07-21 at 14:01:21ID21927889
Tags

password

,

suse

,

linux

,

superuser

Topic

Linux Network Security

Participating Experts
5
Points
500
Comments
26

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SuSE Linux
    What is the latest SuSE version?
  2. Problem upgrading Suse 9.0
    I am currently running suse 9.0 with KDE 3.1. I updated my KDE to 3.2 via the suse website. But now when I download other RPMS from the website, it will not install automatically using yast, it asks which application would i like to open the file with. Like it is unrecognized...
  3. PuTTY for SUSE Linux?
    I wish I can install Putty without having to compile since I dont know how to do that. Is there an easy way to install Putty for SUSE Linux Professional 9.3?
  4. NTLDR for W2K Lost With Suse Dual HDD Install
    I know this issue has come up many times, still can't figure it out. I just installed both OSes, which took DAYS, if that tells you something. Suse works great, its online, etc. Need to fix the grub, sounds like I can do this from the CD, or even better directly in YAST. I'm...
  5. CDE Desktop for SUSE?
    Is there a way to get myself the Common Desktop Enviroment for SUSE linux? And is much better than KDE? I dont know....KDE on SUSE is very much "eye-candy" for me and I hate it and it bugs the hell out of me!!!!
  6. SUSE Linux vs. Trusted Solaris
    Can I setup SUSE Linux to be like a Trusted system? If yes, then how? Links would be greatly appreciated..Thanks

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: SunBowPosted on 2006-07-21 at 16:23:05ID: 17158091

Reinstall should work

 

by: SunBowPosted on 2006-07-21 at 16:25:17ID: 17158098

Assuming you never made any other users or passwords...
btw, SU does not mean super user, if that helps                                  ;-)

 

by: xDamoxPosted on 2006-07-22 at 03:47:12ID: 17159585

Hi,

You are able to reset your root passwd by going into single user mode. Instead of me writing a little guide on how to
get into single user mode here is one for you:

http://kbase.redhat.com/faq/FAQ_35_202.shtm

I think SuSE has a failsafe enviroment or a recovery enviroment I am not 100% sure, this is when SuSE boots up.

 

by: yuriskPosted on 2006-07-23 at 00:30:33ID: 17162500

Of course there's a way, any Linux like system has a way to reset root (superuser) password,
All you need is 1st CD of the SuSE distribution to boot from, then press F1 to enter recovery mode,
well - not to repeat what others have done before here's a step-by-step howto:
http://wiki.suselinuxsupport.de/wikka.php?wakka=HowToResetlostrootpassword

PS And ignore the reinstall advice, this would destroy all your data when there's absolutely
no need for such damage.

 

by: pjedmondPosted on 2006-07-23 at 02:33:41ID: 17162673

You can probaly boot with any live CD:

http://www.frozentech.com/content/livecd.php

Mount the drive with the /etc/shadow file, and reset the password:

http://linux.about.com/od/linux101/l/blnewbie3_2_3.htm

also includes some other mechanisms.

(   (()
(`-' _\
 ''  ''

 

by: xDamoxPosted on 2006-07-23 at 03:38:37ID: 17162761

Why waste time downloading a live CD just to reset a password?

 

by: pjedmondPosted on 2006-07-23 at 03:50:16ID: 17162777

..because sometimes the grub menu is password protected so you can't boot into single mode....and I'm not familiar enough with the Suse recovery process to talk people through it. I know that with a live CD, I can talk someone through the complete process without having to set up a confirmatory test setup.

Of course other people with greater experience may choose a different approach. I don't use Suse, but I'm confident that I can reset the password using a live CD. (Of course the Suse recovery/install disc ...if they still have it?....is effectively a live CD..but we don't know that they have one available - In fact the Q is particularly sparse)

In addition, it is a process that hasn't already been mentioned - This is supposed to be a collaborative forum after all:)

(   (()
(`-' _\
 ''  ''

 

by: phishbone4Posted on 2006-07-24 at 06:44:07ID: 17167577

On friday I went into logged into single user mode and changed my root password. I didn't think it worked because when I logged in with SU account, it said incorrect password. I realized that root and SU are 2 different accounts. I then logged into root and I got in. I seems that su and root have the same access. So it seems I can do everything I need to do under the root account. Can I change the SU password under root? Thanks for all the help.

 

by: pjedmondPosted on 2006-07-24 at 07:54:13ID: 17168296

To change the SU passwd under root:

passwd SU

Enter passwd twicce as requested by the prompts.

(   (()
(`-' _\
 ''  ''

 

by: xDamoxPosted on 2006-07-24 at 08:16:08ID: 17168549

Hi,

To change the password of SU it is:

passwd SU

One question tho why do you have a user called: "SU"? as it is abit confussing with the su command ;)

 

by: phishbone4Posted on 2006-07-24 at 08:34:29ID: 17168766

The SU account is built in to the Suse box. I tried to change passwd SU but it comes up as unknown user.

 

by: kblack05Posted on 2006-07-24 at 08:44:05ID: 17168860

Just follow the instructions to log in as root (using your original install cd and some kernel command line options as you have) then just issue the passwd command with NO ID.

passwd

root@sv00-1029:~# passwd
Changing password for root
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
New password:


SU is an alias to a group setting and under no circumstances should it be an actual userid installed to the server....

 

by: SunBowPosted on 2006-07-24 at 08:46:44ID: 17168884

phishbone4 > SU but it comes up as unknown user
xDamox >      with the su command ;)
Try man?

 

by: kblack05Posted on 2006-07-24 at 08:46:55ID: 17168886

If you are having a problem then, it would seem your SUDOERS file /etc/sudoers is either corrupted or modified...if you 'man su' you will see that you can simply re-establish the group settings to reinstate SU access..


See EE answer

http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_20606356.html?query=fixing+sudoers&clearTAFilter=true

 

by: xDamoxPosted on 2006-07-24 at 10:35:01ID: 17169964

Hi,

I think you have been confused su is used to run a shell with substitute user and group IDs. So say
you were logged in as damian and wanted to become the users phishbone4 you would type the following command:

su phishbone4

This would then ask for the phishbone4 users password. Now if you see something similar to:

su -

This just means that you are changing to root user and the dash means invoke root's paths e.g. $PATH

Now when you logged into single user mode and you were root you needed to type the following:

passwd

Then it would of allowed you to change your password.

 

by: pjedmondPosted on 2006-07-24 at 10:44:03ID: 17170055

If you (as root):

cat /etc/passwd | grep -i su

you'll see whether su, SU, sU or Us exists as a user on your system.

(   (()
(`-' _\
 ''  ''

 

by: xDamoxPosted on 2006-07-24 at 10:46:44ID: 17170095

Hi,

SU is not a user on his system look:

>The SU account is built in to the Suse box. I tried to change passwd SU but it comes up as unknown user.

When it says user unknown this means that it was unable to find the user in the /etc/passwd

 

by: phishbone4Posted on 2006-07-24 at 11:32:58ID: 17170469

I'm a newbie with Suse. All I know that is I logged in as SU, it give me administrative access.

 

by: xDamoxPosted on 2006-07-24 at 11:51:14ID: 17170619

Hi,

Could you type the following commands and display their outputs:

1) whoami

2) id

 

by: SunBowPosted on 2006-07-24 at 15:57:43ID: 17172212

su can be convenient way to use a shell to invoke a different working environment by switching users

When in doubt, go to horses mouth. In this case, it appears Suse is primarily installed with a GUI that has two initial entries for the user: the ID and password. This makes it 'easier' to use than the command line interface (CLI), which can be any of a number of shells in the Unix world (although mainly only three choices).

> it give me administrative access

Define Administrative.

Many systems will have GUIs for a lot of those tasks.

> I'm a newbie with Suse.

Then, try also the RTFM method, to get some online documentation, for example, go here, there is, for example, a 10 MB file with a few PDFs you can read offline (sample from there follows link):

http://www.novell.com/documentation/

2.6.1 root Password
+root is the name of the superuser, the administrator of the system. Unlike
regular users, which may or may not have permission to do certain
things on the system, root has unlimited power to do anything: change
the system configuration, install programs, and set up new hardware. If
users forget their passwords or have other problems with the system, root
can help. The root account should only be used for system administration,
maintenance, and repair. Logging in as root for daily work is rather risky:
a single mistake could lead to many system files being irretrievably lost.
Figure 2.12 shows the relevant dialog. For verification purposes, the password
for root must be entered twice. Do not forget the root password. It
cannot be retrieved later.

 

by: SunBowPosted on 2006-07-24 at 16:06:08ID: 17172248

                                          <more>
2.8 Graphical Login
SUSE LINUX is now installed. You can start right away without passing
the login procedure if you checked automatic login in the local user administration
module. If not, the graphical +Login window shown in Figure
2.17 on the next page is displayed on your screen. Enter a previously
determined user name and password to log in to the system.

2.6.5 Creating Local User Accounts
When user accounts are created locally, any data related to user accounts
(name, login, password, and so on) is stored and managed on this host.
Linux is an operating system that allows several users to work on the same
system at the same time. Each user needs a +user account to log in to the
system. By having user accounts, the system gains a lot in terms of security.
Regular users cannot change or delete files needed for the system to work
properly. Similarly, the personal data of a given user cannot be modified,
viewed, or tampered with by other users. Each user can set up his own
working environment and always find it unchanged when logging back
in.

A user account can be created using the dialog shown in Figure 2.15. After
entering the first name and last name, specify the user name (login). If you
cannot think of a suitable user name, click ‘Suggestion’ for the system to
generate one automatically.

Finally, enter a password for the user. Reenter it for confirmation (to ensure
that you did not type something else by mistake). The user name tells the
system who a user is and the password is used to verify this identity.

Caution
Remember both your user name and the password because they are
needed each time you log in to the system.
Caution

To provide effective security, a password should be between five and eight
characters long. The maximum length for a password is 128 characters.
However, if no special security modules are loaded, only the first eight
characters are used to discern the password. Passwords are case-sensitive.
Special characters like umlauts are not allowed. Other special characters
(7-bit ASCII) and the digits 0 to 9 are allowed.

Two options are available for local users:

‘Receive system messages via e-mail’
Checking this box sends the user messages created by the system services.
These are usually only sent to root, the system administrator.
This option is useful for the prominently-used user account, because
it is highly recommended to log in as root only in special cases.

‘Automatic login’ This option is only available if KDE is used as the default
desktop. It automatically logs the current user into the system
when it starts. This is mainly useful if the computer is operated by
only one user.

Note
No authentication is performed during system start-up with automatic
login. Do not check this option for systems containing
sensitive data or to which other people have access.
Note

 

by: SunBowPosted on 2006-07-24 at 16:22:03ID: 17172301

SunBow > Reinstall should work
yurisk > PS And ignore the reinstall advice, this would destroy all your data when there's absolutely
no need for such damage.
phishbone4 > I'm a newbie with Suse.

Comment: Newbies usually do not have an abundance of critical data yet, and probably rushed through an initial install, if in fact they were present during installation. There is no man command, for example, prior to install. Therefor, when going through an install a second time, one may be a little better learned, and notice some item choices with better understanding. This leads to a more secure system that ends up better satisfying needs of the individual installer.

Unix, especially linux, is also more adept than windows for preserving data during a reinstall due to the ways they handle partitions and formatting, for example.

 

by: SunBowPosted on 2006-07-24 at 16:36:39ID: 17172338

                                        <more>[novell.com]
25.3. Important Linux Commands

Miscellaneous

passwd [option(s)] [username]
Users may change their own passwords at any time using this command.
The administrator root can use the command to change the
password of any user on the system.

su [option(s)] [username] The su command makes it possible to
log in under a different user name from a running session. When
using the command without specifying a user name, you will be
prompted for the root password. Specify a user name and the corresponding
password to use the environment of the respective user.
The password is not required from root, as root is authorized to
assume the identity of any user.

halt [option(s)] To avoid loss of data, you should always use this
program to shut down your system.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...