🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.sys.sun.admin
Article #14468

Re: zmienna długość hasła

#14468
From: Szymon Sokół
Date: Mon, 05 Nov 2007 18:03
37 lines
2678 bytes
On Mon, 05 Nov 2007 12:02:39 +0000, Slawomir Stanczak wrote:

> Kiedy użytkownik zmienia hasło musi wklepać hasło 10-znakowe.
> Kiedy jednak loguję się na takie konto poprzez ssh wystarczy
> wpisać pierwszych 8 znaków i system klienta wpuszacza.
> 
> To w końcu jak to jest ?

A hasła masz szyfrowane... czym? Jak crypt, to tylko 8 znaków jest brane pod
uwagę. Z man passwd:

     Passwords must be constructed to meet the following require-
     ments:

       o  Each password must have  PASSLENGTH  characters,  where
          PASSLENGTH is defined in /etc/default/passwd and is set
          to 6. Setting PASSLENGTH to more than eight  characters
          requires  configuring  policy.conf(4) with an algorithm
          that supports greater than eight characters.

Obstawiam, że Twoje /etc/security/policy.conf zawiera coś takiego:

# The Solaris default is the traditional UNIX algorithm.  This is not
# listed in crypt.conf(4) since it is internal to libc.  The reserved
# name __unix__ is used to refer to it.
#
CRYPT_DEFAULT=__unix__

a jeśli zmienisz to na 
CRYPT_DEFAULT=1
to zaczniesz używać MD5 i wtedy całe hasło powinno być uwzględniane.

-- 
Szymon Sokół (SS316-RIPE) -- Network Manager                                 B
Computer Center, AGH - University of Science and Technology, Cracow, Poland  O
http://home.agh.edu.pl/szymon/ PGP key id: RSA: 0x2ABE016B, DSS: 0xF9289982  F
Free speech includes the right not to listen, if not interested -- Heinlein  H
Technical Details
Message-ID: <7hbbpwnqik2a$.dlg@falcon.sloth.hell.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
References: <1091fbbe99ec2811a107dd677b428e84@news.home.net.pl> <fgn0ov$1gk$1@zeus.man.szczecin.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!dustpuppy.sloth.hell.pl!not-for-mail
From: Szymon Sokół
 <szymon@bastard.operator.from.hell.pl>
Newsgroups: pl.comp.sys.sun.admin
Subject: Re: zmienna długość hasła
Date: Mon, 5 Nov 2007 19:03:33 +0100
Organization: Guy Fawkes Society
Lines: 37
Sender: szymon@news.agh.edu.pl
Message-ID: <7hbbpwnqik2a$.dlg@falcon.sloth.hell.pl>
References: <1091fbbe99ec2811a107dd677b428e84@news.home.net.pl> <fgn0ov$1gk$1@zeus.man.szczecin.pl>
NNTP-Posting-Host: chello087206082132.chello.pl
Mime-Version: 1.0
X-Trace: news.agh.edu.pl 1194286093 1097 87.206.82.132 (5 Nov 2007 18:08:13 GMT)
X-Complaints-To: abuse@agh.edu.pl
NNTP-Posting-Date: Mon, 5 Nov 2007 18:08:13 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.15.1 Hamster/2.1.0.11
X-Face: K)"xK'S)kh&"#lZC#phcV0ZzA!#D/_D@4F=f\~~=kS9q[DU3CRx}OtX&h,rWbG(_+=oA_Zr ?sSy]x:oYR#^knZ8]X;N5uZ$$-9pp;yd];gz^.*{Ql8'ZzeCk-iHBIy$ka~-.]A{7u{=)j(l[y,DT$ K|5@Snh#a>QLl1"2_:JP~1#%+_s-6oplu&yoek<rCaG&
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit