ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Stanislav Ievlev <staringer@mtu-net.ru>
To: devel@linux.iplabs.ru
Subject: [devel] About Installer bugs
Date: Wed, 21 Feb 2001 18:45:28 +0300
Message-ID: <3A93E298.2847CAA2@mtu-net.ru> (raw)

[-- Attachment #1: Type: text/plain, Size: 720 bytes --]

Привет всем!

Посовещавшись, группа товарищей пришла к необходимости исправления
следующих багов в инсталляторе:

1. При установке "по умолчанию" не предлагается сделать загрузочную
дискету
2. При задании пароля root если нажата клавиша "Нет пароля", то должен
быть в результате пустой пароль,а не полное его отсутствие (и
соответственно отсутствие возможности зайти в систему)
3. При установке с минимальным уровнем безопасности не предлагается
ввести пароль администратора
4. При установке с минимальным уровнем безопасности не предлагается
завести пользователей, зато заводится пользователь mandrake с паролем
mandrake (не инсталлятор а троянец какой-то)

Патч прилагается.

----------------------
Stas Ievlev & Co.


[-- Attachment #2: last.diff --]
[-- Type: text/plain, Size: 2729 bytes --]

diff -Naur mdkinst.orig/usr/bin/perl-install/install_steps.pm mdkinst/usr/bin/perl-install/install_steps.pm
--- mdkinst.orig/usr/bin/perl-install/install_steps.pm	Wed Dec 27 04:50:00 2000
+++ mdkinst/usr/bin/perl-install/install_steps.pm	Wed Feb 21 03:51:05 2001
@@ -592,6 +592,9 @@
 	    chomp;
 	    my %l; @l{@etc_pass_fields} = split ':';
 	    add2hash($u, \%l);
+	    if ($u->{password} eq ""){
+		$u->{pw}="";
+	    }
 	    $_ = join(':', @$u{@etc_pass_fields}) . "\n";
 	}
 	print F $_;
diff -Naur mdkinst.orig/usr/bin/perl-install/install_steps_interactive.pm mdkinst/usr/bin/perl-install/install_steps_interactive.pm
--- mdkinst.orig/usr/bin/perl-install/install_steps_interactive.pm	Wed Feb  7 00:45:00 2001
+++ mdkinst/usr/bin/perl-install/install_steps_interactive.pm	Wed Feb 21 05:44:52 2001
@@ -749,7 +749,7 @@
     my $nis = $o->{authentication}{NIS};
     $sup->{password2} ||= $sup->{password} ||= "";
 
-    return if $o->{security} < 1 && !$clicked;
+#    return if $o->{security} < 1 && !$clicked;
 
     $o->set_help("setRootPassword", 
 		 $o->{installClass} =~ "server" || $::expert ? "setRootPasswordMd5" : (),
@@ -772,8 +772,9 @@
 			       and $o->ask_warn('', _("This password is too simple (must be at least %d characters long)", 2 * $o->{security})), return (1,0);
 			     return 0
 			 }
-    ) or return;
-
+#    ) or return;
+     );
+     
     $o->{authentication}{NIS} &&= $nis;
     $o->ask_from_entries_ref('',
 			     _("Authentification NIS"),
@@ -790,16 +791,16 @@
 sub addUser {
     my ($o, $clicked) = @_;
     my $u = $o->{user} ||= {};
-    if ($o->{security} < 1) {
-	add2hash_($u, { name => "mandrake", password => "mandrake", realname => "default", icon => 'automagic' });
-	$o->{users} ||= [ $u ];
-    }
+#    if ($o->{security} < 1) {
+#	add2hash_($u, { name => "mandrake", password => "mandrake", realname => "default", icon => 'automagic' });
+#	$o->{users} ||= [ $u ];
+#    }
     $u->{password2} ||= $u->{password} ||= "";
     $u->{shell} ||= "/bin/bash";
     my @fields = qw(realname name password password2);
     my @shells = map { chomp; $_ } cat_("$o->{prefix}/etc/shells");
 
-    if (($o->{security} >= 1 || $clicked)) {
+#    if (($o->{security} >= 1 || $clicked)) {
 	$u->{icon} = translate($u->{icon});
 	if ($o->ask_from_entries_refH(
         [ _("Add user"), _("Accept user"), $o->{security} >= 4 && !@{$o->{users}} ? () : _("Done") ],
@@ -834,7 +835,7 @@
 	    $o->{user} = {};
 	    goto &addUser;
 	}
-    }
+#    }
     install_steps::addUser($o);
 }
 
@@ -845,7 +846,7 @@
 sub createBootdisk {
     my ($o, $first_time) = @_;
 
-    return if $first_time && $::beginner;
+#    return if $first_time && $::beginner;
 
     if (arch() =~ /sparc/) {
 	

             reply	other threads:[~2001-02-21 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-21 15:45 Stanislav Ievlev [this message]
2001-02-21 19:11 ` Aleksey Novodvorsky
2001-02-22  4:41 ` [devel] autofs Kostya Timoshenko
2001-02-22  4:53   ` Dmitry V. Levin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3A93E298.2847CAA2@mtu-net.ru \
    --to=staringer@mtu-net.ru \
    --cc=devel@linux.iplabs.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git