From owner-freebsd-questions@FreeBSD.ORG Tue Mar 3 08:50:48 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4E15A721 for ; Tue, 3 Mar 2015 08:50:48 +0000 (UTC) Received: from mail-la0-x232.google.com (mail-la0-x232.google.com [IPv6:2a00:1450:4010:c03::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C23D77D4 for ; Tue, 3 Mar 2015 08:50:47 +0000 (UTC) Received: by lams18 with SMTP id s18so35884272lam.13 for ; Tue, 03 Mar 2015 00:50:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:from:date:message-id:subject:to :content-type; bh=Vv7AGty0zZ5htf7RJ1OIxofjipay+hUKe66A3J4XCgQ=; b=D2+JzhIqTR/T14+7p1groTdBT1eDnIU+2CJc5AHf9M10a5HZG7VF8zCGs41xg9YDRp YYoUIKPqKB7YRJZUqcMjLbGw2UTxyE+fC40pa+OSR+d+9FkNFo7Hi/c+zfYWsgKt6QlS N0g9KCVlUQqgkytOXcSdWuwbiCVj9uPBY4FvtxlLYL3v0GDyQnJ1WByuL1YMw4zdYnOi IKrESONt8zGkfLhRcVnyBxpkUFnMRcioDkcwmg1bdmmeRq6dvC0OBGw5OTFzOUKIimIA rLdOJ3FkWjcH5f+BwdvPtnZTQqiSmFaL1fB8EiEHgDxIHorAzdy0Uf02mPK5qHG6FB4g GMYQ== X-Received: by 10.112.39.69 with SMTP id n5mr27972924lbk.1.1425372645728; Tue, 03 Mar 2015 00:50:45 -0800 (PST) MIME-Version: 1.0 References: <54F56A83.3000404@gmail.com> From: Daniel Peyrolon Date: Tue, 03 Mar 2015 08:50:45 +0000 Message-ID: Subject: Re: Check root password changes done via single user mode To: =?ISO-8859-1?Q?Ricardo_Mart=EDn?= , freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 08:50:48 -0000 What I would do is storing a copy of root's password hash somewhere, and compare it with the recent one. The hash can be read at master.passwd (check passwd(5)). El mar., 3 de marzo de 2015 a las 9:02, Ricardo Mart=EDn (< fluxwatcher@gmail.com>) escribi=F3: > > hi all, > > wondering which would be the best approach to script check if the root > password has been changed via single user mode. > > tia > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions- > unsubscribe@freebsd.org" >