15492
![]() |
|
|
|
|
|||||||
| General General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have noticed that when I sit at the console of my server (which is very rare) I have noticed that there is plenty of output on the screen about people logging in remotely (via SSH) and a few other lines of info that appear.
Is it possible to turn ALL of this output off on the console so that when someone looks at the screen ALL they see is the login prompt? |
|
#2
|
||||
|
||||
|
Press alt-f2.
|
|
#3
|
|||
|
|||
|
|
|
#4
|
|||
|
|||
|
Quote:
Code:
#*.err;kern.warning;auth.notice;mail.crit /dev/console Code:
/etc/rc.d/syslogd restart |
|
#5
|
||||
|
||||
|
if you do that, you should also uncomment the line for /var/log/console.log, so you don't miss anything important.
|
|
#6
|
|||
|
|||
|
Quote:
Code:
console.info /var/log/console.log I would like to log this activity but I don't want anything to appear on the console screen. |
|
#7
|
||||
|
||||
|
Did you restart syslog after editing the file?
# service syslog reload(might be restart instead of reload) |
|
#8
|
|||
|
|||
|
Quote:
If the login event was the only that should have been written to your log file then the same might happen to you. Try playing with logger(1) to test syslog(3) settings. And always send a message different from the previous. |
|
#9
|
|||
|
|||
|
Thanks all!
What I ended up doing in/etc/syslog.conf was commenting out: Code:
#*.err;kern.warning;auth.notice;mail.crit /dev/console Code:
*.err;kern.*;authpriv.none;mail.crit /dev/console Code:
auth.notice /var/log/console.log Code:
console.info /var/log/console.log Code:
/etc/rc.d/syslogd restart I am curious to know if you can remove the server s hostname from the login prompt? That would be very nice if that was possible!
|
|
#10
|
|||
|
|||
|
Quote:
|
|
#11
|
|||
|
|||
|
Aaaah thanks for the link to that thread. I think if I remove "%h" from my /etc/gettytab file it will remove the hostname.
Once this change is made, is there a service that you need to restart for the change to take effect? Or is a reboot required? |
|
#12
|
|||
|
|||
|
Quote:
# shutdown nowHit enter when it asks for the shell path. Now you are in single user mode. Go back to multiuser. # exit
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Widescreen console? | Miklos | Mobile Computing | 6 | January 22nd, 2011 23:08 |
| disable console messages and clear screen on boot | viento | General | 10 | August 2nd, 2010 14:31 |
| Change console screen saver without rebooting | vincepoy | General | 12 | February 9th, 2010 02:05 |
| from boot to gdm without seeing console. | engine252 | General | 4 | August 23rd, 2009 01:05 |
| [Solved] High-Res Console and Screen Saver Conflict | Android1 | Installing & Upgrading | 8 | May 9th, 2009 20:28 |