LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 04-24-2008, 10:35 PM   #1
michelandre
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Rep: Reputation: 0
Autoyast and Root Password


Hi all!

I am using AutoYast to install a SuSE-10.2. I would like to be ask for the root password before the installation begins.
I have to use 10.2 only.

I tried with <ask>:
...
...
<general>
<ask-list config:type="list">
<ask>
<title>PASSWORD FOR USER root</title>
<path>users,user,0,user_password</path>
<question>Enter root password</question>
<stage>initial</stage>
<help>Enter the password for the superuser "root".</help>
<password config:type="boolean">true</password>
</ask>
...
...
<users config:type="list">
<user>
<!-- <encrypted config:type="boolean">true</encrypted> -->
<fullname>root</fullname>
<gid>0</gid>
<home>/root</home>
<password_settings>
<expire></expire>
<flag></flag>
<inact></inact>
<max></max>
<min></min>
<warn></warn>
</password_settings>
<shell>/bin/bash</shell>
<uid>0</uid>
<username>root</username>
</user>
</users>
...

I deleted all the other users so to have only root. That way I am able to use: <path>users,user,0,user_password</path> in the ask section. All runs OK, the installer asks for the root password and verifies if both of the entries are OK then it continues. It terminates OK and reboot.

When I login root with the password I entered in the installation, I fail to login.
Where do I go wrong.

Any help appreciated.

Michel-André
 
Old 04-28-2008, 01:04 AM   #2
michelandre
LQ Newbie
 
Registered: Apr 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Smile Found the solution

Hi all!

I found the solution after many try & error:

FOR THE ASK SECTION:
<ask>
<title>PASSWORD FOR USER root</title>
<path>users,0,user_password</path>
<question>Enter root password</question>
<stage>initial</stage>
<help>Enter the password for the superuser "root".</help>
<password config:type="boolean">true</password>
</ask>

FOR THE USERS SECTION:
<users config:type="list">
<user>
<fullname>root</fullname>
<gid>0</gid>
<home>/root</home>
<password_settings>
<expire></expire>
<flag></flag>
<inact></inact>
<max></max>
<min></min>
<warn></warn>
</password_settings>
<shell>/bin/bash</shell>
<uid>0</uid>
<username>root</username>
<forename/>
<surname/>
</user>
</users>

Michel-André
 
  


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
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
How to retrieve( or reset) root password in Mandrake Linux, as I forgot my password? Reghunath Linux - Software 4 05-08-2008 04:11 AM
Password Recovery in Edubuntu 7.04 - In Terminal, Root Login : su , password : ????? farhannaeem13 Linux - Security 3 11-30-2007 09:59 AM
change Root Password even if the password in the grub is also set sheelnidhi Linux - General 6 08-30-2006 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:11 AM.

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
Open Source Consulting | Domain Registration