bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: editfiles:UnCommentLinesContaining doesn't work as expected ...


From: Oddbjorn Steffensen
Subject: Re: editfiles:UnCommentLinesContaining doesn't work as expected ...
Date: Tue, 23 Jan 2001 21:35:09 +0100
User-agent: slrn/0.9.6.2 (FreeBSD)

On Mon, 22 Jan 2001 16:02:09 -0800, Eric Berggren wrote:
>    solaris::
>        { /etc/default/login
>                SetCommentStart '#'
>                SetCommentEnd ''
>                UnCommentLinesContaining "CONSOLE="
>                ResetSearch 1
>                UnCommentLinesContaining "UMASK="
>                ResetSearch 1
>                UnCommentLinesContaining "SUPATH="
>                ResetSearch 1
>                UnCommentLinesContaining "TIMEZONE="
>        }

You might want to try something like:

        { /etc/default/login
                #
                # Activate login timeout, and set it at 10 minutes
                #
                LocateLineMatching "TIMEOUT="
                ReplaceLineWith    "TIMEOUT=600"
        }

Not only uncommenting, but also setting the values to something
you want, which may or may not be what you want to accomplish.


-oddbjorn

-- 
The larger the island of knowledge,            *
the longer the shoreline of wonder.            * http://www.tricknology.org/
    -- Ralph W. Sockman                        *



reply via email to

[Prev in Thread] Current Thread [Next in Thread]