Project

General

Profile

Support #20592

shared account logging for annieraw, anniepro

Added by Arthur Kreymer about 1 year ago. Updated about 1 year ago.

Status:
Assigned
Priority:
Low
Start date:
08/11/2018
Due date:
08/30/2018
% Done:

90%

Estimated time:
2.00 h
Spent time:
Duration: 20

Description

It is good to keep a record of who has logged into the shared accounts on the interactive systems.
At present these accounts are annieraw and anniepro.

I have adapted scripts presently used by the minos shared accounts.

The logging was deployed around 10 AM Aug 11, 2018.
Details to follow in this Redmine Issue.

History

#1 Updated by Arthur Kreymer about 1 year ago

  • % Done changed from 80 to 90

The annieraw and anniepro accounts had no .bashr, .bash_profile or .profile .

This left us free to put the logging into a mininal .bashrc file.
To avoid future conflicts, I symlinked .profile and .bash_profile to .bashrc.

.bashrc performs minimal actions when a prompt is present.
This leaves cron and scp activity unaffected.

.bashrc sets the prompt, removes any aliases for standard commands,
enables checkwinsize for better intractive usage,
and invokes the ${HOME}/loglog.sh script for logging.

loglog.sh requires that there be a forwarded kerberos ticket,
logs the user and original host to ${HOME}/log/logins.log
and makes an shrc alias to source a shrc/<username> script if present.

You get a standard environment on logging in, essential for debugging.
You can get a personalised working environment by typing shrc
if you have provided a ${HOME}/shrc/<username> file.



Also available in: Atom PDF