Re: IDing originating user?

From:
Date: 11/14/02


Date: Wed, 13 Nov 2002 23:52:57 GMT


<dkoleary@attbi.com> wrote in message
news:NNvA9.23088$W4.1832067@news.randori.com...
> Hey;
>
> I recently implemented f-secure on about 50 HP servers and everything's
> working great. There's one last little bit of functionality that I'd
> like to implement from our old environment.
>
> Here's what we used to have:
>
> * Telnet access allowed for everyone except root - had to su or sudo into
> root.
> * Root's profile would set the command line history file based on the
> originating user name - ~root/.sh_history.dkoleary, for instance.
>
> With the new ssh environment, I'm allowing the admins to get directly
> into root with public key authentication. The issue is that everyone
> is now sharing the same history file.
>
> I have figured out two potential work arounds:
>
> * Creating a script and using a command keyword to call it
> in the ~/.ssh2/authorization file. The script will ID the
> user and set the history file appropriately.
> * Obtaining the pid from the SSH2_AUTH_SOCK, id'ing public key
> from the syslog used for that pid, then setting the history file
> from that.
>
> Both of these methods are about as ugly as sin. Is there a clean
> way of identifying the originating public key and/or originating
> user?

Create multiple UID 0 users with distinct login directories.



Relevant Pages

  • RE: Linux hacked
    ... Also, what exactly did the history file show, can you paste it into a mail ... > First let me say I'm a security novice. ... > been unsuccessful in getting root back. ... > via ssh but you could su in once logged in as one of three users. ...
    (Security-Basics)
  • IDing originating user?
    ... * Telnet access allowed for everyone except root - had to su or sudo into ... Root's profile would set the command line history file based on the ... originating user name - ~root/.sh_history.dkoleary, ... Obtaining the pid from the SSH2_AUTH_SOCK, id'ing public key ...
    (comp.security.ssh)
  • Re: bash on AIX 5.2
    ... >>I'm not using root. ... I actually changed the default login shell for my ... Check if there is a .history file in your ... If not, use the RPM. ...
    (comp.unix.aix)
  • Re: Date set?
    ... > It doesn't void any security because it still requires the knowledge of the ... > root PW. ... But then the password is in your command line history file. ...
    (comp.unix.shell)
  • Re: save commands history.
    ... We had a user that kept editing his history file so we changed the ... /etc/profile script to email us a copy of it everytime he logs in. ... Try adding this to your /etc/profile script. ...
    (RedHat)