User login information on console
joh.hendriks at gmail.com
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 22.214.171.124.provider.nl
johanh has logged on pts/1 from 126.96.36.199.provider.nl
johanh has logged on pts/2 from 188.8.131.52.provider.nl
[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 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?
>> freebsd-questions at freebsd.org mailing list
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions