[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to Edit /etc/shadow file to add Password entry
From: |
Thomas Glanzmann |
Subject: |
Re: How to Edit /etc/shadow file to add Password entry |
Date: |
Thu, 22 May 2003 17:48:12 +0200 |
User-agent: |
Mutt/1.5.4i |
> I have been trying to use cfengine 2.0.6 to edit the Solaris
> /etc/shadow file for root password
We use.
control:
clientroot = ( "root:*YOUR*PASSWORD*HERE*:11757:0:99999:7:::" )
!server::
{ /etc/shadow
BeginGroupIfNoSuchLine "$(clientroot)"
DeleteLinesStarting 'root:'
PrependIfNoSuchLine "$(clientroot)"
EndGroup
}
--
Thomas Glanzmann ++49 (0) 9131 85-27574 Department of Computer Science III
Martensstrasse 3 D-91058 Erlangen Germany University of Erlangen-Nuremberg
http://www3.informatik.uni-erlangen.de/Research/UMLinux/