User login information on console
Johan Hendriks
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
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 at 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 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?
>>
>> regards
>> Johan
>>
>> _______________________________________________
>> freebsd-questions at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list