Below, I've included a portion of my autoinst.xml that sets up the password stuff. Why doesn't my root user get his password set? Am I missing something or specifying something incorrectly? <security> <console_shutdown>reboot</console_shutdown> <cwd_in_root_path>no</cwd_in_root_path> <cwd_in_user_path>no</cwd_in_user_path> <displaymanager_remote_access>no</displaymanager_remote_access> <enable_sysrq>no</enable_sysrq> <fail_delay>3</fail_delay> <faillog_enab>yes</faillog_enab> <gid_max>60000</gid_max> <gid_min>500</gid_min> <kdm_shutdown>root</kdm_shutdown> <lastlog_enab>yes</lastlog_enab> <obscure_checks_enab>no</obscure_checks_enab> <pass_max_days>99999</pass_max_days> <pass_max_len>16</pass_max_len> <pass_min_days>1</pass_min_days> <pass_min_len>6</pass_min_len> <pass_warn_age>14</pass_warn_age> <passwd_encryption>md5</passwd_encryption> <passwd_use_cracklib>yes</passwd_use_cracklib> <permission_security>secure</permission_security> <run_updatedb_as>nobody</run_updatedb_as> <system_gid_max>499</system_gid_max> <system_gid_min>100</system_gid_min> <system_uid_max>499</system_uid_max> <system_uid_min>100</system_uid_min> <uid_max>60000</uid_max> <uid_min>500</uid_min> </security> <users config:type="list"> <user> <username>root</username> <user_password>EE8863733EF4355A37D566F3DF2AD016</user_password> <encrypted config:type="boolean">true</encrypted> </user> -- Jeffrey Andrews <jandrews@lancope.com>
You need to encrypt the password before setting it and enter it in like so: <users config:type="list"> <user> <encrypted config:type="boolean">true</encrypted> <user_password>1C4DFVM68V3xnFU</user_password> <username>root</username> </user> </users> To generate the above encrypted password you want to try something like: # perl -e 'print crypt("passwd", "95"),"\n"' 'system' being the password and '95' being an arbitrary salt. Hope this help. -Nick On Tue, 15 Mar 2005, Jeffrey Andrews wrote:
Below, I've included a portion of my autoinst.xml that sets up the password stuff. Why doesn't my root user get his password set? Am I missing something or specifying something incorrectly?
<security> <console_shutdown>reboot</console_shutdown> <cwd_in_root_path>no</cwd_in_root_path> <cwd_in_user_path>no</cwd_in_user_path> <displaymanager_remote_access>no</displaymanager_remote_access> <enable_sysrq>no</enable_sysrq> <fail_delay>3</fail_delay> <faillog_enab>yes</faillog_enab> <gid_max>60000</gid_max> <gid_min>500</gid_min> <kdm_shutdown>root</kdm_shutdown> <lastlog_enab>yes</lastlog_enab> <obscure_checks_enab>no</obscure_checks_enab> <pass_max_days>99999</pass_max_days> <pass_max_len>16</pass_max_len> <pass_min_days>1</pass_min_days> <pass_min_len>6</pass_min_len> <pass_warn_age>14</pass_warn_age> <passwd_encryption>md5</passwd_encryption> <passwd_use_cracklib>yes</passwd_use_cracklib> <permission_security>secure</permission_security> <run_updatedb_as>nobody</run_updatedb_as> <system_gid_max>499</system_gid_max> <system_gid_min>100</system_gid_min> <system_uid_max>499</system_uid_max> <system_uid_min>100</system_uid_min> <uid_max>60000</uid_max> <uid_min>500</uid_min> </security> <users config:type="list"> <user> <username>root</username> <user_password>EE8863733EF4355A37D566F3DF2AD016</user_password> <encrypted config:type="boolean">true</encrypted> </user> -- Jeffrey Andrews <jandrews@lancope.com>
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
If I told the system to use md5, would I then encrypt the MD5 digest of the password, or the plain text? In my <security> section: <passwd_encryption>md5</passwd_encryption> In my <user> section, the below is the md5 digested password. <user_password>EE8863733EF4355A37D566F3DF2AD016</user_password> Thanks. Jeff On Tue, 2005-03-15 at 16:30 -0500, Nicholas DeClario wrote:
You need to encrypt the password before setting it and enter it in like so:
<users config:type="list"> <user> <encrypted config:type="boolean">true</encrypted> <user_password>1C4DFVM68V3xnFU</user_password> <username>root</username> </user> </users>
To generate the above encrypted password you want to try something like:
# perl -e 'print crypt("passwd", "95"),"\n"'
'system' being the password and '95' being an arbitrary salt.
Hope this help.
-Nick
On Tue, 15 Mar 2005, Jeffrey Andrews wrote:
Below, I've included a portion of my autoinst.xml that sets up the password stuff. Why doesn't my root user get his password set? Am I missing something or specifying something incorrectly?
<security> <console_shutdown>reboot</console_shutdown> <cwd_in_root_path>no</cwd_in_root_path> <cwd_in_user_path>no</cwd_in_user_path> <displaymanager_remote_access>no</displaymanager_remote_access> <enable_sysrq>no</enable_sysrq> <fail_delay>3</fail_delay> <faillog_enab>yes</faillog_enab> <gid_max>60000</gid_max> <gid_min>500</gid_min> <kdm_shutdown>root</kdm_shutdown> <lastlog_enab>yes</lastlog_enab> <obscure_checks_enab>no</obscure_checks_enab> <pass_max_days>99999</pass_max_days> <pass_max_len>16</pass_max_len> <pass_min_days>1</pass_min_days> <pass_min_len>6</pass_min_len> <pass_warn_age>14</pass_warn_age> <passwd_encryption>md5</passwd_encryption> <passwd_use_cracklib>yes</passwd_use_cracklib> <permission_security>secure</permission_security> <run_updatedb_as>nobody</run_updatedb_as> <system_gid_max>499</system_gid_max> <system_gid_min>100</system_gid_min> <system_uid_max>499</system_uid_max> <system_uid_min>100</system_uid_min> <uid_max>60000</uid_max> <uid_min>500</uid_min> </security> <users config:type="list"> <user> <username>root</username> <user_password>EE8863733EF4355A37D566F3DF2AD016</user_password> <encrypted config:type="boolean">true</encrypted> </user> -- Jeffrey Andrews <jandrews@lancope.com>
-- To unsubscribe, e-mail: suse-autoinstall-unsubscribe@suse.com For additional commands, e-mail: suse-autoinstall-help@suse.com
-- Jeffrey Andrews <jandrews@lancope.com>
Hi, Am Mittwoch, 16. März 2005 14:49 schrieb Jeffrey Andrews:
If I told the system to use md5, would I then encrypt the MD5 digest of the password, or the plain text?
In my <security> section: <passwd_encryption>md5</passwd_encryption>
In my <user> section, the below is the md5 digested password. <user_password>EE8863733EF4355A37D566F3DF2AD016</user_password>
This doesn't look like the proper format needed for the file /etc/shadow as it seems to be some hex value. Even if the above value turned up in /etc/shadow (if it did at least your xml-configuration seems okay) you could not log in. Let's say your password is supposed to be suse. You get the proper hash for example with mkpasswd (package whois): mkpasswd --hash=md5 Passwort:suse $1$jJaKReiE$a4DK5UhFrvbg8hDX4nXrj. The last line is what you cut and paste between <user_password> and </user_password> Another way to get the hash would be to give some testuser-account the desired password and copy the resulting hash from /etc/shadow. Regards Björn Lotz
hi all, i'm planning to migrate to SuSE 9.1 from Centos 3.3 which is runnig on my system right now. let me tell u at the start that i'm completely new to linux. i would like to know, if i can directly put the SuSE cd's into the drive and start installing. the system is relatively new, and doesn't have much data on it. so i don't stand to lose anything if SuSE completely overwrites everything. the hard disk has already been partitioned, would this create any problems. kindly let me know if i need to take any precautions before starting the installation. thanks for any help. bye. chaitanya. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Hi, Chaitanya Krishna A <icymist82@yahoo.com> wrote :
let me tell u at the start that i'm completely new to linux.
I do not want to disappoint you, but I think you subscribed to the wrong mailing-list. This list deals with automatic installation procedures of SuSE Linux and its deriavates. You may want to subscribe to suse-linux-e@suse.com via http://www.suse.com/en/private/support/online_help/mailinglists/ This is just a quick hint from me for now: If you have a /home on a single partition, in your scenario you should be ok with formatting all other partitions leaving that one alone. bis dahin / kind regards Martin Mewes -- http://webmin.mamemu.de/
participants (5)
-
Björn Lotz
-
Chaitanya Krishna A
-
Jeffrey Andrews
-
Martin Mewes
-
Nicholas DeClario