Date: Sat, 4 Jun 2016 05:29:21 +0200 From: Johan Hendriks <joh.hendriks@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: User login information on console Message-ID: <614f99ac-6367-d2c3-5893-089aea3047fb@gmail.com> In-Reply-To: <C68DCAA3-360F-48C8-99BB-C16361B3B912@gmail.com> References: <0fe96fb9-b6af-777e-9c40-d2552e05a045@gmail.com> <C68DCAA3-360F-48C8-99BB-C16361B3B912@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@desk ~]$ su Password: johanh has logged on pts/0 from 123.124.123.2.provider.nl johanh has logged on pts/1 from 123.124.123.2.provider.nl johanh has logged on pts/2 from 123.124.123.2.provider.nl [root@desk ~]# This is FreeBSD 10.2 amd64 btw regards Johan 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@gmail.com> 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@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?614f99ac-6367-d2c3-5893-089aea3047fb>