From owner-freebsd-questions@freebsd.org Fri Oct 21 01:03:52 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B650FC1A56C for ; Fri, 21 Oct 2016 01:03:52 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x22e.google.com (mail-it0-x22e.google.com [IPv6:2607:f8b0:4001:c0b::22e]) (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 7DFFFFC7 for ; Fri, 21 Oct 2016 01:03:52 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x22e.google.com with SMTP id k64so43358708itb.0 for ; Thu, 20 Oct 2016 18:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=0SLtkrtGp70TySDoDjt8j33UJj0ozVA+RGGZP3sbNbY=; b=v9jCvaao+elvNAlGM3uOJQQjboW9cKksZost989soAgyJXVTusiXTZs03gLq57PbW5 tSzaVVHDXa+SC8K03hQQbRWzPQnmsENXR+dp7SCvF+O/z+qsxjCybRT9a3xf6wqIQq1h j31sZjhiHLRNrPvptQESfbIreWKpbj1Ft6NQHDJVIvf0b8IdZa3NF74X78k1fkrOx23s 3g0wbZGtRKqR2ZISWv44TzA+NbwnMYatZlHOqGbPIZsRAiXRWxfEKXdNOgB1v+Fc/SoM ccyV3fqjVLYrJFDt55/JfT8yBBryw5uH6CUCdLow4yVlkMucEm0DUgjf8gDyTHpjV4EP PJ5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=0SLtkrtGp70TySDoDjt8j33UJj0ozVA+RGGZP3sbNbY=; b=MHJex31Yn8Q+QhyEmviH0lysRk2C6v8NAVe5imQ7SE9xjj1nwWLUHFLgyFY/hGsQvm 74Sq1su5JsFz6AbwQ5UsYbtf3K+ojTw+eK7ekAX9VDOjaf3yMUFWCE2UnSJpGDoouXaw 8wJPAWZFQfxD8H5Q5S/Qv9kFxDXzE6meVn3E+Aq+NOZPe1xDNO4e6JCT5ovkrCNeZb2i LstWIsUFpSG4A/RdfAG7l6ReGi7o2pdZGpb9DlOXO10iBXT9Hu91ZW9q3RICVN6FDt3l NjHo48Z8fGCB2fRE7Ol1DEfMcNMhC22R3lufrDvFG4XSfLJu++S8CS4iTgMBe1D0ZyCM w+Fw== X-Gm-Message-State: ABUngvejONSnj0EogHmaBJzQ3I5waMv2B8FDvWACOE15WQ+tlFspdOn1IYhFIuo3/AB59A== X-Received: by 10.107.166.16 with SMTP id p16mr3794779ioe.228.1477011831952; Thu, 20 Oct 2016 18:03:51 -0700 (PDT) Received: from [10.0.10.3] (cpe-24-165-204-240.neo.res.rr.com. [24.165.204.240]) by smtp.googlemail.com with ESMTPSA id c42sm1121713ioj.32.2016.10.20.18.03.50 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Oct 2016 18:03:50 -0700 (PDT) Message-ID: <5809698C.2020106@gmail.com> Date: Thu, 20 Oct 2016 21:04:12 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Alphons van Werven CC: Freebsd Questions Subject: Re: 11.0 disable fortune freebsd-tips References: <58095D71.8060804@gmail.com> <20161021003854.GA73198@spectrum.skysmurf.nl> In-Reply-To: <20161021003854.GA73198@spectrum.skysmurf.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2016 01:03:52 -0000 Alphons van Werven wrote: > Ernie Luzar wrote: > >> In 11.0 user logins now get freebsd-tips. > > Maybe I've missed something, but that doesn't sound new to me at all. The > fortune cookies have been in the default user environment for pretty much > as long as I can remember. > >> Is there a simple way to disable this feature? > > If nothing spectacularly new happened (i.e. if in this matter FreeBSD 11 > is no different than earlier versions), one can disable the fortune > cookies in any of the following ways. > > a) Remove the user's ~/.login and/or ~/.profile files if there's nothing > else of note in there. > > b) Modify the user's ~/.login and/or ~/.profile files and comment out the > fortune line. > > c) Remove and/or rename the /usr/games/fortune binary. > > d) Don't install fortune(6) in the first place. > > e) When adding users, do not copy the default environment into the user's > home directory. > > f) Modify the default environment for new users. It's in /usr/share/skel. > Remove or modify the files dot.login and/or dot.profile in there (see > options a and/or b). > > Please note: > * options a and b affect existing individual users; > * options c and d affect all users; > * options e and f affect newly created users. > > HTH, > > Fonz > Thanks for the info. option d) tickled my memory. bsdinstall in 11.0 has new option for enabling "fortune" by default. During install from cdrom.iso I just hit enter to take all defaults without reading the comments. My mistake. Now that 11.0 is installed and customized for my environment I have chosen to do c) as simple hake to disable it.