LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-01-2020, 10:33 AM   #1
Bendik
LQ Newbie
 
Registered: Jul 2018
Posts: 8

Rep: Reputation: Disabled
Disable freebsd-version on login


Hi,

Whenever I log into my FreeBSD box (console or ssh) I get the following messages:
Code:
Last login: Wed Jan  1 17:17:29 2020 from mungo.jungle.net
FreeBSD 12.1-RELEASE-p1 GENERIC
I would like to suppress the second line, since I have similar information in /etc/motd. I suspect it is the output of freebsd-version, but I cannot for the life of me figure out which file to modify. Anyone know?
 
Old 01-02-2020, 06:26 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,499

Rep: Reputation: Disabled
Maybe something in this post will do it.

https://forums.freebsd.org/threads/h...message.24156/
 
Old 01-02-2020, 08:25 AM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
That is almost certainly the output of freebsd-version(1) or uname(1), which is perhaps being called by /etc/login.conf or perhaps /etc/profile or something else, I can't really say which.

Try running a grep for either of those on /etc to see which configuration files are calling it? But be wary of modifying those, if you can simply get away with a dot file instead (~/.profile or ~/.login_conf).

If you want to get rid off all the messages, just follow fatmac's link.
 
Old 01-02-2020, 10:41 AM   #4
Bendik
LQ Newbie
 
Registered: Jul 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you both, it was uname -v called from /etc/profile
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Disable login screen (auto login) after waking from sleep (KDE/KDM) damgar Slackware 2 08-18-2018 10:29 PM
SSH Login - Bypass public Key check (temp disable passwordless login) Lunar Linux - Networking 1 02-23-2014 04:25 AM
how to disable "last login log" & disable "last login message" when start login. hocheetiong Linux - Newbie 4 02-08-2011 05:35 AM
Howto disable "Graphical Login" or "Standard Login?" the_gripmaster Red Hat 1 07-08-2004 02:55 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 04:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration