User login information on console

Johan Hendriks joh.hendriks at
Sat Jun 4 03:29:23 UTC 2016

Thank you for your time.

I added that line to my /root/.cshrc file, but it does not work if I add
set watch = (0 root any).
The users use bash, root uses csh. If I add set watch = (any any) it
only prints the users already loggen on, no notifications are send when
a new user su to root like below.

[johan at desk ~]$ su
johanh has logged on pts/0 from
johanh has logged on pts/1 from
johanh has logged on pts/2 from
[root at desk ~]#

This is FreeBSD 10.2 amd64 btw



Op 04/06/16 om 00:07 schreef Felix Friedlander:
> If you’re using csh/tcsh, then `set watch = (0 root any)’ will notify you when someone logs in or out as root. Assuming root’s shell is still (t)csh, you could put that line in /root/.cshrc to apply it for all root logins.
>> On 3 Jun 2016, at 22:13, Johan Hendriks <joh.hendriks at> wrote:
>> Hello all.
>> If someone logs in and su to root, then there is a line printed on the
>> first console.
>> Is it possible to print this to all logged in root users with a ssh session?
>> regards
>> Johan
>> _______________________________________________
>> freebsd-questions at mailing list
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at"

More information about the freebsd-questions mailing list